13 ms·
(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,
by jonathan_s 12y 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/blob/master/bin/ptipython 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.
- carreau 12y ago(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.
- andreasvc 12y agoHow does it compare to bpython, then? That does syntax highlighting and has support for multiline editing IIRC.
- thomasballinger 12y agoBasically it's great, and matches up well with bpython: I wrote up some comparisons at http://ballingt.com/2014/09/30/prompt-toolkit.html http://ballingt.com/2014/09/30/prompt-toolkit.html (bpython-curtsies author here)