Background ZMQ IPython/Jupyter kernel
Project description
Run some IPython ZMQ kernel in the background, without an interactive shell. You can connect to that kernel remotely via ZMQ.
Installation (package is on PyPI):
pip install background_zmq_ipython
Usage:
import background_zmq_ipython background_zmq_ipython.init_ipython_kernel()
The kernel will then run in the background in its own thread. The init will print some message similar to this on stdout:
To connect another client to this IPython kernel, use: jupyter console --existing kernel-1111.json
Alternatives / related links:
IPython.embed_kernel in a background thread (example code). This has some issues (e.g. here; messing around with sys.stdout etc).
This code was introduced in this StackOverflow question, and also discussed in this IPython GitHub issue #8097, but it has become outdated, so this project provides a rewrite / updated code, and the goal was also an easy to install pip package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for background_zmq_ipython-1.20190202.165811.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169ef9f06fc85026c971980b604a65a8a2a14af2d58ef8c140ad5ca29c8236c9 |
|
MD5 | 165f958af72e8f9999e1f2aa11882583 |
|
BLAKE2b-256 | 276ad5f9515dd9431e1fcded993030c6b10ec58c84e917e449dde492bb5fbad5 |