Live data from Hacker News

Syntax highlighting, auto complete and more within Python interpreter

bpython-interpreter.org

1–10 of 33 posts

Re: Syntax highlighting, auto complete and more within Python interpreter

#6
post #5

Did I miss something? How do I start this thing? Couldn't find it on Documentation..

$ sudo apt-get install bpython

$ bpython

Or similar if you have a different package manager. You can also build from source: http://bpython-interpreter.org/releases/bpython-0.9.7.tar.gz

ie, this isn't something you can run in your browser.

Re: Syntax highlighting, auto complete and more within Python interpreter

#7
post #4

Last time I tried out bpython, it seemed to crash at the slightest hint of any error. I'll have to try it again and see if it's improved.

After playing with it for a few minutes, and throwing some intentional errors at it, it seems relatively stable.

Re: Syntax highlighting, auto complete and more within Python interpreter

#8
post #6
post #5

Did I miss something? How do I start this thing? Couldn't find it on Documentation..

$ sudo apt-get install bpython $ bpython Or similar if you have a different package manager. You can also build from source: http://bpython-interpreter.org/releases/bpython-0.9.7.tar.gz ie, this isn't something you can run in your browser.

For those mac users out there, Macports is currently at 0.9.6.2.

  sudo port install py26-bpython

Re: Syntax highlighting, auto complete and more within Python interpreter

#10
My favorite reaction to bpython was showing it to somebody, watching them use it for about 30 seconds, and them watching them alias it to 'python' without even thinking :) It blows the default python interpreter environment out of the water: it remembers history between sessions, autocompletes just about everything, and even has a shortcut for dumping code out to Pastebin.
Post reply on HN