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.
Metadata
Release files for background-zmq-ipython 1.20190203.141352
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| background_zmq_ipython-1.20190203.141352.tar.gz | 6.0 kB | Details |
Release files / background_zmq_ipython-1.20190203.141352.tar.gz
| Download URL | background_zmq_ipython-1.20190203.141352.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
720fdcb7a67912fd3f9b98ffb5e6b046b354bf8d5025e3209dbcab9d1f72e3e9
|
|
BLAKE2b-256 checksum How to use checksums |
193c112ac33ba38a2893965dd23f1dd5cbccaf36a74362ad0bc86df12480553a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|