Live coding in Python implemented as an Eclipse plug in.
Python Java
Pull request Compare This branch is 251 commits behind donkirkby:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
META-INF
PySrc
src/live_py
.classpath
.gitignore
.project
.pydevproject
README.md
build.properties
plugin.xml

README.md

live-py-plugin

Live coding in Python implemented as an Eclipse plug in. To see how it works, watch the demo video or read the blog post.

Installing

  1. Install the PyDev plugin and Eclipse if you don't already have them.

  2. Download the latest version of the live-py plugin jar file from the downloads page.

  3. Copy the plugin jar file to Eclipse's dropins folder. On my workstation I was able to do that in two different ways.

    1. Copy it to the system-wide Eclipse installation.

        sudo cp live-py_1.0.0.201206132143.jar /usr/lib/eclipse/dropins/
      
    2. Copy it to your .eclipse folder in your home directory. This doesn't require sudo permission.

        mkdir ~/.eclipse/org.eclipse.platform_3.7.0_155965261/dropins
        cp live-py_1.0.0.201206132219.jar \
        ~/.eclipse/org.eclipse.platform_3.7.0_155965261/dropins
      
  4. Restart Eclipse.

  5. Open any Python file, and add a comment like this:

     # echo on
    

    You should see an extra column next to the line numbers that shows the results of any code that runs. It may be less distracting to turn off the line numbers.

Uninstalling

  1. Delete the jar file from the dropins directory.
  2. Restart Eclipse.

Working Features

  • local variable assignments
  • looping
  • function calls, and multiple calls.
  • compile errors
  • runtime exceptions
  • infinite loops halted.

To do

  • print statements don't work.
  • Any syntax error currently blanks out the results, should just show previous result with error marker.
  • Figure out how to add a horizontal scroll bar.
  • Move ruler to right side.