tags:

views:

22

answers:

1

I like the python shell in ubuntu, it looks pretty, and I want to run jython from there. Can this be done somehow? Woo crazy saturday night.

A: 

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 pythpn shell?

P.S. Possibly

import subrocess                                 
f=subprocess.Popen(['jython', '/usr/share/jython/Lib/test/test_xmllib.py'],stdout=subprocess)
for f.stdout.readline:
    ...
Roman A. Taycher
jython in the unix shell works, but yeah, I'm trying to run jython from the (for lack of a better term) interactive shell
Some person
the jython interactive shell? or a jython process?
Roman A. Taycher
import subrocess f=subprocess.Popen(['jython', '/usr/share/jython/Lib/test/test_xmllib.py'],stdout=subprocess)
Roman A. Taycher