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.1.tar.gz (4.4 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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file bgipykernel-0.1.1.tar.gz.

File metadata

  • Download URL: bgipykernel-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 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.1.tar.gz
Algorithm Hash digest
SHA256 9a760a10cd5bea286efe0265561c8de137deef2b5c857f714c9c096223a901f2
MD5 9249dbac8fbaa4ed46082afc7fcc40cc
BLAKE2b-256 416e04a700b232c1c9f219f7d1fcfc6913a6065abec3e1fb009f12dc2860564b

See more details on using hashes here.

File details

Details for the file bgipykernel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bgipykernel-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c398951c2bc20e976df766008e5e4f5ce8a02264ab451d795685925f547de21
MD5 6992b4151f84cbf56d83bf06ec38663c
BLAKE2b-256 85075c72e2b65e6805c55d64b3df3cdfba868da9b89b1c858c45f4620ca3a747

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