Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:13
    pauldmccarthy commented #11911
  • 12:53
    pauldmccarthy edited #11911
  • 12:51
    pauldmccarthy commented #11911
  • 12:43
    pauldmccarthy synchronize #11911
  • 12:34
    pauldmccarthy synchronize #11911
  • Oct 18 15:23
    PrometheusPi commented #11918
  • Oct 18 13:00
    PrometheusPi edited #11918
  • Oct 18 13:00
    PrometheusPi commented #11918
  • Oct 18 12:34
    PrometheusPi commented #11918
  • Oct 18 12:33
    PrometheusPi edited #11918
  • Oct 18 12:33
    PrometheusPi commented #11918
  • Oct 18 12:32
    PrometheusPi commented #11918
  • Oct 18 12:31
    PrometheusPi commented #11918
  • Oct 18 06:23
    PrometheusPi commented #11918
  • Oct 18 00:57
    dhirschfeld commented #11918
  • Oct 18 00:55
    dhirschfeld commented #11918
  • Oct 17 23:11
    benjimin synchronize #11916
  • Oct 17 22:46
    benjimin synchronize #11916
  • Oct 17 20:01
    anilsehgal-onscale commented #4983
  • Oct 17 19:55
    anilsehgal-onscale commented #4983
Luciana da Costa Marques
@LucianaMarques
Nice, thanks!
matrixbot
@matrixbot
genes http://codepad.org/TzMCLz5x
this works fine, and it's what I need. converting a string to a list.
But when I use it in my app, I get something like
lst1= ['[', "'", 'C', ':', '/', 'U', 's', 'e', 'r', 's', '/', ..... ]
type(lst1) = <class 'list'>
genes why? I need a list of file locations, to use them.
genes any suggestions?
max00xam
@max00xam
I don't understand what do you mean... str1 is not a string, it's a list
max00xam
@max00xam
str1 = 'C:/Users/Pictures/Copy.jpg, C:/Users/Pictures/bubblee.PNG, C:/Users/Pictures/tur.PNG'
lst1 = str1.split(', ')
print(lst1)
['C:/Users/Pictures/Copy.jpg', 'C:/Users/Pictures/bubblee.PNG', 'C:/Users/Pictures/tur.PNG']
saimanoj75
@saimanoj75
Is atom is best for doing python
Tristian Azuara
@triztian
Hmm I’d go with VSCode, PyCharm (commercial) or Sublime Text 3
harshchaplot
@harshchaplot
Jupyter notebooks is also good
And google colab is also good
Dan Davison
@dandavison
Emacs with Jedi and Paredit is great. However, probably not if you don't want to mess about with configuration and reading manuals.
And not if you're newer to programming; you don't want your text editor to be a big distraction and hassle.
Till Stensitzki
@Tillsten
hey dunno if this counts as a bug, but load_ext does not strip whitespace
e.g. %load_ext autoreload
fails if there is a space after autoreload
oh this is already filed unter #5640
Tanim Islam
@tanimislam
Actually, I suggest emacs or vim with Jedi
I concur with @dandavison. The big benefit of emacs, for instance, is that I have never had to worry about memory exhaustion when running emacs (even on machines older than 15 years), its console UI and tramp lets me develop remotely, and it is rock solid (I only experience reliability issues when using emacs lisp code I have developed).
runaway-xfce
@runaway-xfce
@runaway-xfce
Hi, I'm trying to run this program:
song = input("Tell me your favorite song: ")
print(song)
print(song)
print(song)
But everytime I run the program and write a name for the input shows up that the "name i wrote" is not definied
Someones can help me please?
harshit317
@harshit317
@runaway-xfce please use - str(input('' ''))
harshchaplot
@harshchaplot
The input function returns a string so no need to do str ()
tintupratap
@tintupratap
@runaway-xfce I see nothing wrong in your code..
Kristiyan Katsarov
@katsar0v
Anyone here who has experience with ipython extensions? link
I need some help, I cannot do any logging, would be really thankful if someone could help me out
tsoernes
@tsoernes
Where to define custom keyboard shortcuts? If I define them in a file in the shortcuts folder, then they are run after vi mode is set, thus they are overridden.
krinsman
@krinsman
Don't know if this is the right place to ask questions about traitlets, since it's under the 'ipython' user on GitHub. In any case, when is the next release of traitlets planned? Callable was added to the source nearly three years ago, but no official releases have been made, so when installing traitlets from conda the Callable can't be used (which is quite frustrating).
utabe
@utabe
Hello. I'm looking for assistance on finding the best way to remove "" from sys.path in ipython. I was thinking of doing a command line option to remove it. What is the best way to add a command line option to ipython?
nraw
@nraw
question: how come ipython doesn't display the function arguments with autocomplete? I mean.. they are listed there in alphabetical order with pretty much everything else and are only recognised by the =, but that's about it. I think pretty much every other interpreter with autocomplete has some sort of hints when it comes to this?
drethegreat1
@drethegreat1
@drethegreat1
Hi
does anybody know how to convert a json file to CSV using python .. pandas etc ??
please i need your help
utabe
@utabe
@drethegreat1 you can use the json module and json.load the json file. Similarly you can use the csv module to open a csv.writer and then write the contents of the json file using writerow into the csv file.
Rohit Kapoor
@algo-circle
Hi! Can anyone tell me how to make widgets in Jupyter? I'm a beginner.
Rohit Kapoor
@algo-circle
Thank you
Harsha Vardhan
@harsha547
@drethegreat11 use jsonify library to convert json to csv, csv to json
Rakesh Palaparthi
@rp-21
...
Steven Lee
@stevenleeS0ht
Is there a dependency list or requirement description in README.md or anywhere else?
Min RK
@minrk
@stevenleeS0ht dependencies are in setup.py, so pip install . will install any dependencies automatically.
Vidar Tonaas Fauske
@vidartf
Should this work (aka a bug), or is this "as intended":
from IPython.display import display
handle = display(display_id=True)
handle.update('world')
(this shows nothing, as the first display call doesn't actually create an output that is updatable)
Min RK
@minrk
Hm, not sure
Maybe the first call should error with nothing given to display?
Vidar Tonaas Fauske
@vidartf
Would it make sense for it to create an output with an empty bundle, or will that break some assumptions?
I agree it might make sense to error if the display_id arg was also missing, but its presence indicates that some outputs might be given to it later
Min RK
@minrk
yeah, I think it does make sense to do this. Can you tell that it's the display function that's deciding not to send and not the client side?
Vidar Tonaas Fauske
@vidartf
yeah, no display_data message gets sent for the empty one, but I'll make sure to prove by source for a PR
Vidar Tonaas Fauske
@vidartf
fun fact: display(None, 'foo', 'bar', display_id=True) produces:
'bar'
'bar'
'bar'
I guess that one can be written up as "works as expected" if a specific id is given, but maybe not fully intuitive when True is used
Min RK
@minrk
that's...fun
Vidar Tonaas Fauske
@vidartf
BTW, it is possible to get an empty, updatable output with display({}, raw=True, display_id=True)
so I'm thinking to maybe just leave this alone
well, I was thinking that in order to allow for code like display(*possibly_empty_iterable, display_id=True), but that does seem like a weird pattern...
Vidar Tonaas Fauske
@vidartf
it seems classic notebook does filter away empty outputs (e.g. from display({}, raw=True, display_id=True))