Giter VIP home page Giter VIP logo

zmq-pykernel's Introduction

Simple interactive Python kernel/frontend with ZeroMQ

This is the code that served as the original prototype for today's IPython client/server model. It is kept here purely as a reference to illustrate how to implement similar ideas for interactive Python interpreters on top of zeromq. This example used to be included with pyzmq but for some reason was removed, so it's available here in standalone form. It should be useful to anyone wishing to either implement a similar system or understand IPython's basic architecture without all of the details.

The message spec included here was the original, minimal spec we used for this implementation, today's IPython messaging is based on these ideas but has evolved substantially.

Usage

Run in one terminal:

./kernel.py

and in another:

./frontend.py

In the latter, you can type python code, tab-complete, etc. The kernel terminal prints all messages for debugging. Exit the frontend with Ctrl-D, and the kernel with Ctrl-(note that Ctrl-C will not stop the kernel).

License

This code is released under the terms of the BSD license, same as IPython itself. It was originally authored by Brian Granger and Fernando Perez, but no further development is planned, as all the ideas illustrated here are now implemented in IPython and developed there as production code.

zmq-pykernel's People

Contributors

fperez avatar sn6uv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zmq-pykernel's Issues

Syntax error

I tried to run kernel.py and ran into this error:

~/zmq-pykernel$ ./kernel.py
File "./kernel.py", line 123
except zmq.ZMQError, e:
^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.