how do I invoke jython from the python shell (ubuntu)
I like the python shell in ubuntu, it loo开发者_Go百科ks pretty, and I want to run jython from there. Can this be done somehow?
Can't you just start a jython shell by typing jython?
Or are you trying to run ipython with jython? or do you want to run a jython program/script from an interactive python shell?
P.S. Possibly
import subrocess
f=subprocess.Popen(['jython', '/usr/share/jython/Lib/test/test_xmllib.py'],stdout=subprocess)
for f.stdout.readline:
...
精彩评论