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 executeinsert_cell(code, position="below", cell_type="code")- Insert cellreplace_cell(code)- Replace current cell contentexecute_cell()- Execute current cellcreate_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3da6dd54ec6a57ae26ac495127b912cb3b3578acf3c1498ba4472d3dfcb70d13
|
|
| MD5 |
8cd3a7738ff87bc7d7abf21acf2f3b9b
|
|
| BLAKE2b-256 |
b779a034d043d965816205f92cc5880e466465daea6d0a7f55bd22a0791f57e3
|
File details
Details for the file cleon_jupyter_extension-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cleon_jupyter_extension-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7692fbd42f3410a6b985104a79449558babe4239db5aba782625eca73981339
|
|
| MD5 |
1b5699c4c0f4e610ee9208a6a3a629df
|
|
| BLAKE2b-256 |
5916f4761651c886306ae8485e0d42e2cb268d894932b4b761f4cf54f996163c
|