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.4.tar.gz (4.9 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.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_kernel_handler-0.1.4.tar.gz
  • Upload date:
  • Size: 4.9 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.4.tar.gz
Algorithm Hash digest
SHA256 45b52119d7bc8935e24711fd0cdf22d45cbd84d8d920438b5085b21e949e9eb0
MD5 f22ce1db73a185652fa5999cdad156a5
BLAKE2b-256 dd21d378f856928879035cdfc7b16d350a974fdf88de7ca42e457554bf140b24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_kernel_handler-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7bed98a46ad0a97eea772f565438802c01316001357f37cfc377dbd020ba392d
MD5 e55c70bf023b2a2d32c51f2077c3ff32
BLAKE2b-256 7fade98798eb0d778cf2fa8da1fd723cd4f709a752cc665305977b715b07e9c1

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