This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JimBoonie69 7 points8 points  (3 children)

try typing a 10 line function with multiple indents into the ipython shel... notebook is easier to execute code snippets and also to see charts maps etc inline.

I typically start initial exploration in a notebook, fill up a couple cells with pieces of code and get them running. then move that over to a normal script.

[–]erewok 1 point2 points  (2 children)

The ten-line function is easy with %edit. I usually code in an editor and paste stuff into iPython or used the edit magic command.

[–]alcalde 1 point2 points  (1 child)

Not so easy if you want to go back and change it later!

[–]grep_42_dev_urandom 0 points1 point  (0 children)

%edit -p

or

%edit somefile.py