Hacker News new | ask | show | jobs
by jonathan_s 4273 days ago
(author here.)

The idea is indeed that ``ptpython`` could become the terminal front-end for IPython.

The only thing on which ``prompt_toolkit`` is focussing, is reading input from stdin and returning it to the application. IPython is a very powerful execution environment, but the current command line interface which uses GNU readline lacks decent multiline editing and syntax highlighting.

There is a proof of concept of what the integration could look like: https://github.com/jonathanslenders/python-prompt-toolkit/bl... But in the end it would be nice to have this as a part of IPython itself.

2 comments

(One of IPython dev here)

Having better integration with IPython would be super meet. Will be happy to provide help and get feedback on API. Using ZMQ API could allow to use this with our Julia, ruby, Haskell... Backends! Would be happy to chat with you durring one of our google hangout.

How does it compare to bpython, then? That does syntax highlighting and has support for multiline editing IIRC.
Basically it's great, and matches up well with bpython: I wrote up some comparisons at http://ballingt.com/2014/09/30/prompt-toolkit.html (bpython-curtsies author here)