Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I am a newbie to the python world.
I wanted the goodies of Ipython in my Jython shell and hence decided
to embed it.
Trying to follow the instructions given in the IPython's website to
embed the instruction is not working.
>>>from IPython.Shell import IPythonShellEmbed
gives the following errors.
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: No module named Shell
It works fine when I try to embed it in python sehll .Does anyone know
why this is happening ?
has anyone tried doing this? What were the experiences ?
From: David P. Kleinschmidt <david@kl...> - 2004-04-20 23:37:38
On Apr 20, 2004, at 3:59 AM, Deepak Chandra wrote:
> Trying to follow the instructions given in the IPython's website to=20
> embed the instruction is not working.
It looks like your first problem is that IPython isn't installed=20
properly installed into your Jython's Lib directory. Jython and=20
CPython [and even different versions of CPython] keep their library=20
files separate. [On my Gentoo Linux box, for instance, CPython 2.2's=20
library is /usr/lib/python2.2, CPython 2.3's library is=20
/usr/lib/python2.3, and Jython's library is /var/jython/Lib.]
...and with good reason, too. IPython depends on a few libraries that=20=
aren't available in Jython [dis, inspect, pydoc] and, if you na=EFvely=20=
copy these files over from the CPython 2.1 distribution into your=20
Jython Lib directory like I just did a few minutes ago, you'll find=20
yourself in a World of Hurt. Even if you can get them to compile, they=20=
won't work properly. [Presumably this is why they're missing from the=20=
Jython distribution in the first place.] So, even if you get your=20
library directories squared away, I doubt you could get IPython to run=20=