Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Live coding in Python implemented as an Eclipse plug in.
Python Java Emacs Lisp Shell
Latest commit 35dda7d @donkirkby Merge pull request #59 from zhenglinj/master
Don't display trailing whitespace


Live coding in Python implemented as an Eclipse plugin or an Emacs minor mode.

To see how it works, watch the demo video or read the blog post. You might also find some useful examples in the tools folder.

Special thanks to Antti Kaihola and Christoph Paulik for contributing the Emacs support.

If you like this project, check out some of my other projects.

Installing the Eclipse plugin

  1. Install the PyDev plugin and Eclipse if you don't already have them. It's been tested with PyDev 4.1.0, Eclipse 4.4, Python 2.7 and 3.4. It seems to be particularly sensitive to changes in PyDev.
  2. Download the latest version of the live-py plugin jar file from the releases 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_2.0.0.201209171018.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_2.0.0.201209171018.jar \
  4. Restart Eclipse.
  5. Open any Python file, and from the Pydev menu, choose Live Coding. You should see an extra panel on the right that shows the results of running your code.
  6. To try the turtle graphics features, open the Window menu, and choose Show View: Other.... Then under PyDev, click Live Coding Canvas and click OK.

Uninstalling the Eclipse plugin

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

Installing the Emacs mode

  1. Install GNU Emacs if you don't already have it.
  2. It's probably easiest to install MELPA and then use that to install the live-py-mode package. That will make it easy to upgrade and to install other packages. If you install with MELPA, you can skip the rest of these instructions.
  3. To install without MELPA, clone the latest version of the live-py Emacs mode:

    git clone
  4. Copy the Emacs Lisp file and the supporting Python files into a directory which is in your Emacs load-path. For example:

    cd live-py-plugin
    cp emacs-live-py-mode/live-py-mode.el plugin/PySrc/*.py ~/.emacs.d/

    Add ~/.emacs.d/ to your load-path in ~/.emacs.d/init.el or ~/.emacs:

    (add-to-list 'load-path "~/.emacs.d")
  5. Load the Lisp library in your ~/.emacs.d/init.el or ~/.emacs:

    (require 'live-py-mode)
  6. Restart Emacs.
  7. Open any Python file, and activate live-py-mode with M-x live-py-mode. You should see an extra window on the right that shows the results of running your code.

Uninstalling the Emacs mode

If you installed it with MELPA, just use it to uninstall. If not, follow these steps:

  1. Remove the files you copied into ~/.emacs.d/:
  2. Revert additions to ~/.emacs.d/init.el or ~/.emacs.
  3. Restart Emacs.

Working Features

  • turtle graphics, including filled polygons (Eclipse only)
  • local variable assignments
  • looping
  • function calls, and multiple calls.
  • compile errors
  • runtime exceptions
  • infinite loops halted.
  • print statements work.

If you find the project useful, help us make it better.

Something went wrong with that request. Please try again.