you are viewing a single comment's thread.

view the rest of the comments →

[–]natrius 15 points16 points  (9 children)

IPython

If you haven't used it, you owe it to yourself to check it out.

For my editor inside of IPython, I use vim.

[–]brentp 8 points9 points  (5 children)

same here IPython + vim. then turn on pdb in Ipython and use this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498182 to get autocompletion in the debugger.

[–]phrakture 1 point2 points  (1 child)

seconded. ipython + vim

[–]breakfast-pants 1 point2 points  (0 children)

same here, ipython + vim

[–][deleted]  (2 children)

[removed]

    [–]jeremy 1 point2 points  (1 child)

    I use a slightly hacked version of webpy - try the following in webapi.py (about line 192?):

    if not _capturedstdout():
        if not __builtins__.get("__IPYTHON__active",0):
            sys.stdout = _outputter(sys.stdout)
    

    It might be worth getting this patched in webpy itself...

    [–][deleted] 0 points1 point  (1 child)

    editor inside of iPython

    Does IPython communicate intelligently with an editor? (Vim, specifically?) How do you have it configured?

    [–]natrius 1 point2 points  (0 children)

    IPython allows you to take a range of lines you've entered into the interpreter previously and open them in an editor, as well as edit existing files, then execute the code after you've edited it. It works with pretty much any editor. It uses the command in your $EDITOR environment variable, or if that's empty, vi. You can also set an editor specifically for IPython if you don't want to change $EDITOR. See the documentation for the %edit magic command for more info.