Skip to main content

JupyterLab extension for cell manipulation from kernel

Project description

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 .

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

cleon_jupyter_extension-0.1.14.tar.gz (113.6 kB view details)

Uploaded Source

Built Distribution

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

cleon_jupyter_extension-0.1.14-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file cleon_jupyter_extension-0.1.14.tar.gz.

File metadata

  • Download URL: cleon_jupyter_extension-0.1.14.tar.gz
  • Upload date:
  • Size: 113.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cleon_jupyter_extension-0.1.14.tar.gz
Algorithm Hash digest
SHA256 258f557b010450acddaaa38d62ea0c3ea1de7b9f7bbe89e41fe04abc3fb5c50e
MD5 f6dbe363c14e9c810a82420a8685db5e
BLAKE2b-256 5a158b866ed3204a1eb96e71932bf3752e2393a4d8e7650d3dd8e6f8cca6a2e0

See more details on using hashes here.

File details

Details for the file cleon_jupyter_extension-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for cleon_jupyter_extension-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d77fc3fa20f311575b8ae696881aa69fdd90da1c06bca3608a34e4d12c203e2f
MD5 67d6aeb6cebe78501ba6599abe94b3d4
BLAKE2b-256 57afa17a6f7b8eff9487ac0e45ab3fa207d709586550529a6c9b0f9c2083ea84

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