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.15.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.15-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleon_jupyter_extension-0.1.15.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.15.tar.gz
Algorithm Hash digest
SHA256 60171773f0e9cbbfebf31088182d325dce49ff6a317f8ee008a0eacd46358db7
MD5 81a5aa001992263bbb6961662a14df1f
BLAKE2b-256 95f018e2f33d2e6e49e9e34951bd1f114e5baf4679936b2cacccac94c3507cdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleon_jupyter_extension-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3f41b14dfbfc030e67f50945560307879cd3975fd46f724fd5ad79e6f648cb
MD5 c9a9363bf303078dc2438a47ff19d2df
BLAKE2b-256 344c81b0eb9ee5014c78eead603577c4a28ff309f030d93dca84580dbd1dc287

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