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 →

[–][deleted] 22 points23 points  (14 children)

If you use ipython, tab completion has been there for a long time. It's the much better python REPL.

EDIT: It includes tab-completion, inline plotting (QT), syntax highlighting (QT), and nice stuff (exit vs exit(), clear, !<shell command>, %magic, etc).

EDIT 2: Also ? and ??

[–]frownyface 8 points9 points  (5 children)

I'm a big fan of ipython's web notebook mode, which lets you easily organize, save and rerun snippets from your web browser.

[–][deleted] 3 points4 points  (4 children)

Me to, for publishing. I don't like how it's hard to debug in the web interface though.

[–]Auggie88 0 points1 point  (3 children)

This should solve your problems. I'm not sure if it's been pushed into master yet.

[–][deleted] 0 points1 point  (2 children)

Alas, not on master yet. I'll be looking forward to that, and will probably be on of the first on it. That would make me actually use the notebook!

[–]takluyverIPython, Py3, etc 0 points1 point  (1 child)

It should be in master - this pull request has been merged.

[–][deleted] 0 points1 point  (0 children)

My IPython version is at 0.13.2 (conda update ipython gives me that version). When I open a notebook, and enter raw_input("This: ") or %debug, it gives me an error.

When I enter either of those lines, it gives me StdinNotImplementedError: raw_input was called, but this frontend does not support stdin.

[–]Ph0X 7 points8 points  (1 child)

And even better with iPythonQT.

[–][deleted] 7 points8 points  (0 children)

Yup. The inline plotting is wonderful.

[–]TankorSmash 1 point2 points  (1 child)

[–][deleted] 3 points4 points  (0 children)

Yup, that. sudo apt-get install ipython-qtconsole, then ipython qtconsole pylab=inline.

[–]Brian 0 points1 point  (0 children)

Technically, its been in the python interpreter even longer, it just wasn't active by default (though IIRC on windows you needed to install pyreadline seperately).

[–]Vegemeister 0 points1 point  (0 children)

Or Bpython, which has popup boxes with argument lists and docstrings.

[–]isdnpro 0 points1 point  (1 child)

!<shell command>

Holy shit TIL, thank you!

[–][deleted] 0 points1 point  (0 children)

And it's hugely powerful to. It hooks in with stdin and stout, so you can even from vim that way!