Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Jython through IPython: is readline still an issue?

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:

  1. 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?

  2. 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?

like image 723
fitze Avatar asked Mar 22 '13 17:03

fitze


People also ask

Is IPython a Python interpreter?

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 ...

What is IPython interpreter?

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.


1 Answers

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!

like image 65
Abbyspot Avatar answered Sep 27 '22 18:09

Abbyspot