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.13.tar.gz (113.0 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.13-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleon_jupyter_extension-0.1.13.tar.gz
  • Upload date:
  • Size: 113.0 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.13.tar.gz
Algorithm Hash digest
SHA256 3f159673ce0c667357cc80268e2f5d5e91430f116ff51129a1c844c9bcfea136
MD5 435edf558aafdf9a6651294745ad7fe1
BLAKE2b-256 19ce379956416017c0cbe0605435574a61a2766ba6505c04c181aee6eede7668

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleon_jupyter_extension-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 39a5ce4df576f42af056ae01a78c844fa1e92e78b9ec4aa50351433994314e33
MD5 b1c8bcb7adf52329429fec46ce53b85e
BLAKE2b-256 5a8d7d65d4f6ed8618729a6f1082eb89af1fb9624df87e99aeb4ecc3bd414a4c

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