Skip to main content

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 await in multiple cells concurrently, use bgipykernel.NoAsyncLockIPythonKernel
  • If you just want %bg, use bgipykernel.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bgipykernel-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bgipykernel-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for bgipykernel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5292681f982137e650bdb30a35f4eeb906b3b2f0bc4e6f86aa6e42f9d47e90a
MD5 eef78feeaaa358d660fdc8423437fbf7
BLAKE2b-256 6fe075df9f9d7d50796c2597d198ee6ec4aed699edbfd10438cb60358967f3f0

See more details on using hashes here.

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

Hashes for bgipykernel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 158fb9b0b3396968c51027355cbddcec0042b6559ea940a866eec38015374435
MD5 4338da93c4b128d6e094e3864e124d67
BLAKE2b-256 64f3644a455af3c8328465fafcc0074c995acb333c9d9ab34ad43e7a0fd9e33f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page