logo       

Notes on using the JythonShell outside of jyleo: msg#00088

lang.jython.user

Subject: Notes on using the JythonShell outside of jyleo

howdy folks,

I thought Id just leave this message here for those
that would be interested. I do work on an app called
jyleo, can be downloaded here:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=147335

jyleo is a literate editor. Now, in developing the
app I also develop a piece of Java code I call the
JythonShell. What it is:
A Swing front end to the Jython interpreter. Ive
modeled its functionality after IPython and also
thrown in some other useful things. If you get
frustrated with the regular jython prompt because its
missing something you'd like the JythonShell may have
it for you.

One of the goals I have for the JythonShell is that it
can be used independently of jyleo. Its just another
Java library. When embeded in jyleo, jyleo does the
integration. Because of this, its possible to run the
JythonShell outside of jyleo. This is what Ive been
doing as of late, since Ive had need of the shell
independent of jyleo. Since Ive been doing this I
thought other jython users may benefit from it as
well, those who dont give a darn about about jyleo. :D

Here is a simple recipe(copied from a wiki note I
made):
howdy,

I thought Id share this info for folks that are
interested. As Ive said, Im stuck not using jyleo but
have need of its JythonShell component. The
JythonShell can operate independently of jyleo. So I
set up a simple shortcut on my desktop to start it up
when I need it. The essence of getting it to run is:
set the CLASSPATH environment variable to point to: 1.
The jython.jar that is in the jython distribution when
installed. 2. The parent directory of org/leo/shell
directory. This is currently the src directory in the
jyleo distribution.

On a unix machine I export the CLASSPATH export
CLASSPATH

then I execute the shell like so: java
org.leo.shell.JythonShell

and up pops the shell.

-----------------
wiki link:
http://leo.zwiki.org/JyLeo


Some other relevant info about the JythonShell:
1. Its a Java 5 app.
2. It needs the latest Jython 2.2 release

I think thats all the info anyone needs, any questions
go ahead and ask.
thanks!
leouser


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise