Console4Jython is a personal project that I started developing during my last project at work. I was fascinated by Python for sometime and after seeing
this comic on XKCD, I was tempted to try out and see if I could actually "import antigravity". Well, my project was Java and so I went for Jython so that I could sneak in some Jython into my work and learn on the go.
Unfortunately, I was to spoilt by Eclipse and intellisense and I was itching to have code help in Jython. So I decided to write my own small IDE for this. The reason was simple - I wanted to have some fun. And so on a Saturday night, I sat and wrote the first version of this SWING console with basic intellisense and the ability to load scripts and save command history as a script file. As I used the tool, I felt I could share it and so I set up this in Sourceforge.
Please visit the forums at
https://sourceforge.net/forum/forum.php?forum_id=839626 and tell me how you feel about this tool!
Console4Jython 1.1
This needs Java 6.
This is the next version that is planned in the next few weeks. The major changes include a new look UI with docking windows, ability to set different look and feels and add new look and feels by making entry in a property file. I am also trying to make the menu's more attractive with icons.
A tree view of the current directory and all the sub folders under it and another tree view of all the current objects in the shell is also part of the plan.
I have been coding this for a week now - 3 hours a day - but I am still not happy and want to improve things.
Console4Jython 1.0.6
Version 1.0.6beta needs Java 6 - the final version 1.1 which is planned in a few weeks will support Java 6 only!
The tool is currently in beta stage and the 1.0.6 version is the last stable version - where I know everything is working fine. This version includes the following features:
- Type any python object and hit ctrl+space - It will execute dir() on the command and show the results in a list box
- Press ctrl+up arrow key and it will show the command history
- Type clear to clear the screen
- You can right click in the console to get a cotext menu that will allow you to load a Python script and execute it
- You can right click in the console to get a context menu that will allow you to save the command history to a script file
- You can right click and open a basic editor that you can use to write and execute scripts
- You can execute a script direct from the prompt with "exec [filename]"
- You can specify a bootstrap script file called bootstrap.py in the start directory which will be executed each time you start the editor.
- You can generate wrapper script from a class file by typing the comamnd "parseclass [class name]"
- You can generate wrapper script for a jar file by typing "parsejar [jar name] [package filter]". Use * as the package filter to generate scripts for all classes in the jar file.
Downloads
The tool can be downloaded from here on sourceforge.
Support
I am developing this tool in my personal time, but I am always looking for suggestions to improve the tool. You can always reach me on anarahari@gmail.com.
You can also support this tool by visiting