Skip to main content

Jupyter Kernel Handler: Cell Execution Monitor with colored output and custom hooks

Project description

Jupyter Kernel Handler

Cell Execution Monitor with colored output and custom hooks for Jupyter notebooks.

Features

  • Pre-run cell content display (blue)
  • Real-time output (green)
  • Post-run summary (yellow)
  • Custom hooks for pre-run, real-time, and post-run events
  • Debug mode for line-by-line real-time output

Installation

From PyPI (public release)

pip install jupyter_kernel_handler

From GitHub (latest code)

pip install git+https://github.com/Dataxcelerator/jupyter_kernel_handler.git

Using a PyPI API key (for private uploads)

If you need to install from a private PyPI repository using an API key, use:

pip install --extra-index-url https://__token__:<YOUR_API_KEY>@pypi.org/simple jupyter_kernel_handler

Replace <YOUR_API_KEY> with your actual PyPI token.

Usage

import jupyter_kernel_handler
jupyter_kernel_handler.set_hooks(pre_run=my_pre, realtime=my_real, post_run=my_post)
jupyter_kernel_handler.activate(debug_mode=True)

See the notebook run.ipynb for a full demo.

License

MIT

Source

GitHub Repository

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

jupyter_kernel_handler-0.1.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

jupyter_kernel_handler-0.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_kernel_handler-0.1.3.tar.gz.

File metadata

  • Download URL: jupyter_kernel_handler-0.1.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for jupyter_kernel_handler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c0f9e3308a1c5eb5d74e44c6956768d8e7c77b64cba17b94a95f28f1491e0855
MD5 dda778366a4ab8952a21fe1164efea03
BLAKE2b-256 22a5e429a73142542c964a9ebec09792c4e5eb86e0233a23e7530e0174faf58b

See more details on using hashes here.

File details

Details for the file jupyter_kernel_handler-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_kernel_handler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a94b420df2b99bc594fe99663fd07560c34141738094f022eb75dd03c07be7d8
MD5 424236c37f78bcb91133a47ad31268c1
BLAKE2b-256 e46f50ebb86cf91d8efe7c2c3ab0a0e627a8bccaea4e79eb5a17992c54dd220e

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