问题
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?
回答1:
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!
来源:https://stackoverflow.com/questions/15576355/using-jython-through-ipython-is-readline-still-an-issue