Live data from Hacker News

Bpython is a fancy interface to Python

bpython-interpreter.org

11–20 of 41 posts

Re: Bpython is a fancy interface to Python

#11
This is a great project that's been posted here on HN a couple of times already. I like this project a lot but I can't use it on my Mac because it swallows all the libedit/readline keyboard shortcuts I've come to expect from any REPL. Shame.

Re: Bpython is a fancy interface to Python

#13
post #12

Bpython is good, but IPython with %edit and knowledge of a command line text editor has changed my workflow[1]. I wish more repls had this ability. [1]: Maybe you can do it Bpython and I'm just not aware.

I don't know what %edit does, but if I guess that it has something to do with an editor, I use this in my dotfiles:

https://github.com/Julian/dotfiles/blob/master/.pythonrc#L55

which is perfectly REPL agnostic.

I prefer bpython over iPython for a bunch of reasons that I can't easily elaborate on from here on my mobile, but is definitely suggest people try them both out.

Re: Bpython is a fancy interface to Python

#14

I'm finding it extremely buggy. For example - pressing F8 when no code has been entered yet causes a TypeError. I will post this on the mailing list but considering it's an old (~4yrs?) project I'm surprised such issues haven't been fixed.

I'm not able to replicate that on my machine.

> bpython version 0.10.1 on top of Python 2.7.3

Re: Bpython is a fancy interface to Python

#15
post #12

Bpython is good, but IPython with %edit and knowledge of a command line text editor has changed my workflow[1]. I wish more repls had this ability. [1]: Maybe you can do it Bpython and I'm just not aware.

I don't know what %edit does, but if I guess that it has something to do with an editor, I use this in my dotfiles: https://github.com/Julian/dotfiles/blob/master/.pythonrc#L55 which is perfectly REPL agnostic. I prefer bpython over iPython for a bunch of reasons that I can't easily elaborate on from here on my mobile, but is definitely suggest people try them both out.

That's pretty nifty - thanks.

EDIT: Also, I have used bpython, but since I use python more on the data side as opposed to web (or something not data) IPython along with everything else make it too good to not use.

Re: Bpython is a fancy interface to Python

#17

I'm finding it extremely buggy. For example - pressing F8 when no code has been entered yet causes a TypeError. I will post this on the mailing list but considering it's an old (~4yrs?) project I'm surprised such issues haven't been fixed.

I'm not able to replicate that on my machine. > bpython version 0.10.1 on top of Python 2.7.3

bpython version 0.12 on top of Python 2.7.3

Re: Bpython is a fancy interface to Python

#18

You can install bpython with a simple "pip install bpython". (This isn't immediately obvious from the website.)

I don't know if it's still like that, but last time I checked, I had to invoke

    python -m bpython.cli
instead of just bpython to get autocompletion for packages in your load path. This project hasn't seen any commits since last March. If anyone is up for it, it can really use some help. It's a very promising project and I like it a lot, if only it didn't have those couple of annoyances... Too bad I have no time to contribute, I have 3 projects of my own to deal with...

Re: Bpython is a fancy interface to Python

#20
post #11

This is a great project that's been posted here on HN a couple of times already. I like this project a lot but I can't use it on my Mac because it swallows all the libedit/readline keyboard shortcuts I've come to expect from any REPL. Shame.

Anyone know of a fix?
Post reply on HN