I'd like to use the Jython interpreter with IPython, so that I could use things like tab completion and perhaps the IPython notebook. The IPython FAQ site steps around whether this is possible. I have two questions:
Say Jython could work with IPython: how do I actually go about tying them together? When I execute $ ipython
, I'm running a Python interpreter. How do I set up IPython so that I run a Jython interpreter?
Even if I knew how to do #1, I've searched around and it seems like the effort to get Jython working with IPython has been ditched, perhaps for the readline issues mentioned on that FAQ site. However, searching has shown that readline should work in Jython; see jython wiki. So, the question here is: is it now possible to use Jython in IPython, if some sort of readline functionality is available?
IPython (short for Interactive Python) was started in 2001 by Fernando Perez as an enhanced Python interpreter, and has since grown into a project aiming to provide, in Perez's words, "Tools for the entire life cycle of research computing." If Python is the engine of our data science task, you might think of IPython as ...
IPython is a powerful interactive Python interpreter that is more interactive comparing to the standard interpreter. To get the standard Python interpreter you type python and you will get the >>> prompt from where you can work. To get IPython interpreter, you need to install it first.
Sadly, I don't think it is really possible. It might be because ipython has some explicit dependencies on the underlying OS, which doesn't work so well on Jython because it's dispatching on an os computer. Ipython considers this a bug that will be fixed in the future on their website. Hope this helped!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With