Alternative IPythonKernel with concurrent cell running in jupyter using %bg and await
Project description
bgipykernel - %bg in jupyter
Install using pip install bgipykernel
Add the following line to your ipython_kernel_config.py file:
c.IPKernelApp.kernel_class = 'bgipykernel.NoAsyncLockBgIPythonKernel'
if you can't find your config file, run ipython profile locate.
features
Move running cells to the background by running %bg
Kill background cells using %kill
See what cells are running in the background using %jobs
Run multiple cells with await concurrently
available configurations
- If you just want to use
awaitin multiple cells concurrently, usebgipykernel.NoAsyncLockIPythonKernel - If you just want
%bg, usebgipykernel.BgIPythonKernel` - If oyu want both, use
bgipykernel.NoAsyncLockBgIPythonKernel
trouble
When using a %bg variant (i.e. BgIPythonKernel or NoAsyncLockBgIPythonKernel), interrupting the kernel can only happen at the byte code level, meaning functions like time.sleep don't get interrupted.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bgipykernel-0.1.0.tar.gz.
File metadata
- Download URL: bgipykernel-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5292681f982137e650bdb30a35f4eeb906b3b2f0bc4e6f86aa6e42f9d47e90a
|
|
| MD5 |
eef78feeaaa358d660fdc8423437fbf7
|
|
| BLAKE2b-256 |
6fe075df9f9d7d50796c2597d198ee6ec4aed699edbfd10438cb60358967f3f0
|
File details
Details for the file bgipykernel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bgipykernel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
158fb9b0b3396968c51027355cbddcec0042b6559ea940a866eec38015374435
|
|
| MD5 |
4338da93c4b128d6e094e3864e124d67
|
|
| BLAKE2b-256 |
64f3644a455af3c8328465fafcc0074c995acb333c9d9ab34ad43e7a0fd9e33f
|