Skip to main content

Cleon Jupyter Extension

JupyterLab extension for manipulating notebook cells from the kernel.

Installation

pip install cleon-jupyter-extension

Then restart JupyterLab.

Usage

from cleon_cell_control import insert_and_run, insert_cell, create_insert_button

# Insert code into a new cell below and execute it
insert_and_run("print('Hello!')")

# Just insert a cell without running
insert_cell("# My new cell", position="below")

# Create a button that inserts and runs code when clicked
create_insert_button("import pandas as pd")

API

  • insert_and_run(code, cell_type="code") - Insert cell below and execute
  • insert_cell(code, position="below", cell_type="code") - Insert cell
  • replace_cell(code) - Replace current cell content
  • execute_cell() - Execute current cell
  • create_insert_button(code, label) - Create clickable button

Development

cd extension
./install.sh

# Or manually:
npm install
npm run build:prod
pip install -e .

Metadata

Release files for cleon-jupyter-extension 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cleon-jupyter-extension 0.1.15
File Size Uploaded
cleon_jupyter_extension-0.1.15.tar.gz 113.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cleon-jupyter-extension 0.1.15
File Interpreter ABI Platform
cleon_jupyter_extension-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 139.0 kB

Release files / cleon_jupyter_extension-0.1.15.tar.gz

Download URL cleon_jupyter_extension-0.1.15.tar.gz
Size 113.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60171773f0e9cbbfebf31088182d325dce49ff6a317f8ee008a0eacd46358db7
BLAKE2b-256 checksum
How to use checksums
95f018e2f33d2e6e49e9e34951bd1f114e5baf4679936b2cacccac94c3507cdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / cleon_jupyter_extension-0.1.15-py3-none-any.whl

Download URL cleon_jupyter_extension-0.1.15-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f3f41b14dfbfc030e67f50945560307879cd3975fd46f724fd5ad79e6f648cb
BLAKE2b-256 checksum
How to use checksums
344c81b0eb9ee5014c78eead603577c4a28ff309f030d93dca84580dbd1dc287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page