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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleon_jupyter_extension-0.1.1.tar.gz
  • Upload date:
  • Size: 87.8 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.1.tar.gz
Algorithm Hash digest
SHA256 3da6dd54ec6a57ae26ac495127b912cb3b3578acf3c1498ba4472d3dfcb70d13
MD5 8cd3a7738ff87bc7d7abf21acf2f3b9b
BLAKE2b-256 b779a034d043d965816205f92cc5880e466465daea6d0a7f55bd22a0791f57e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleon_jupyter_extension-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7692fbd42f3410a6b985104a79449558babe4239db5aba782625eca73981339
MD5 1b5699c4c0f4e610ee9208a6a3a629df
BLAKE2b-256 5916f4761651c886306ae8485e0d42e2cb268d894932b4b761f4cf54f996163c

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