• Stars
    star
    156
  • Rank 238,222 (Top 5 %)
  • Language
    Python
  • Created over 13 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ZeroMQ-based interactive Python kernel (aka toy-ipython)

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.

More Repositories

1

nb-slideshow-template

A template for a notebook-based slideshow (talk), with setup instructions.
CSS
56
star
2

jupytee

Experimental playground with Jupyter magics to use OpenAI's GPT-3 models inside Jupyter environments.
Python
53
star
3

reprosw

Lecture notes (in IPython Notebook format) on Reproducible Science And Modern Scientific Software
36
star
4

blog

Blog sources: kept mostl as IPython notebooks that can be immediately converted to blogger posts.
25
star
5

copip

Environment Development Overlays for Conda
Python
24
star
6

mytoy

A toy repo illustrating a minimal installable Python package
Python
19
star
7

pycon2014-keynote

Materials for my PyCon 2014 keynote in Montreal
Python
16
star
8

lacquer

A thin layer of convenience on top of useful Python libraries.
Python
10
star
9

nipy-notebooks

Example notebooks for basic tasks in neuroimaging and statistcs with nipy
Python
10
star
10

ipython-rkernel

Toy R Kernel for IPython
Python
8
star
11

repro-chapter-oss

Reproducibility: OSS and scientific research.
TeX
7
star
12

spheredwi

Research: representation of functions on the sphere and diffusion-weighted imaging
Jupyter Notebook
7
star
13

py4science

A set of lecture notes, workbooks and examples for using the Scientific Python ecosystem for research and technical computing.
Jupyter Notebook
7
star
14

pyston

Simple utility to manage (clone/update/install) a group of github-hosted python packages from source
Python
7
star
15

datarray-doc

Datarray Documentation
5
star
16

dotfiles

Reproducible configuration file management. See .README.md file (note the leading dot) for details!
Shell
5
star
17

berkeley-ds-tutorial

A subset of the IPython in-depth tutorial for a discussion with the Berkeley DS8 team
Jupyter Notebook
5
star
18

image-compare

Image comparison tool based on the IPython interactive widget architecture.
5
star
19

talk-1504-boulder

Slides and notebooks for keynote @ NCAR SEA conference and NREL seminar
Python
4
star
20

gh-activity

Tools to measure activity on github for a set of orgs and repos
Jupyter Notebook
3
star
21

pge_summary

Summary report for PG&E (California utility) cost and usage data for gas and electricity
Jupyter Notebook
3
star
22

xtk-ipython

Tests/demo for xtk/ipython integration
Python
3
star
23

fpsync

Simplistic rsync-based filesystem synchronization utility
Python
3
star
24

science-journal-demo

Jupyter Notebook demo loading data created by the Android app Google Science Journal
Jupyter Notebook
3
star
25

summerschool

Proposal for a summer school in reproducible research in Python, Summer 2012
3
star
26

cforge-setup

Simple scripts to quickly install and setup a mamba/conda-forge based installation on a machine.
2
star
27

ipynb-embed-video

Tests for embedded video in the IPython notebook
2
star
28

scipytut

Utilities for tutorials at SciPy conference
Python
2
star
29

talk-1312-nips

Talk at the NIPS 2013 MLOSS workshop: IPython Notebook, HTML conversion and supporting materials.
Python
2
star
30

talk-microsoft-python-2014

Notebooks and slides for a presentation at the "Python at Microsoft day", Sept 17 2014
Python
2
star
31

slipython

Serverless IPython toy prototype
Python
1
star
32

sympy

Repo for sympy patches so the core devs can pull
Python
1
star
33

hexp-test

Tests for plotlyhtmlexport
HTML
1
star
34

homesetup

Setup for $HOME with git for new systems
Python
1
star
35

polyglotds

Polyglot Data Science with IPython & friends
1
star
36

intro-binder

A quick intro to binder
Jupyter Notebook
1
star