Skip to main content

A JupyterLab extension for visualizing notebook cells using YesWorkflow.

Project description

yw-jupyter

PyPI - Version GitHub Actions Workflow Status

A JupyterLab extension build upon ReactFlow for visualizing notebook cells using YesWorkflow.

  • The extension adds a "YesWorkflow" tab to the JupyterLab sidebar and cell toolbar.
  • Clicking the "YesWorkflow" tab opens the YesWorkflow panel.
  • The panel displays a graph representation of the current notebook's cells and their relationships based on yw-core.
  • Notebook cells and graph nodes are in sync:
    • Selecting a cell highlights the corresponding node in the graph and vice versa.
    • Editing cells updates the contents in the node in real-time and vice versa.

demo-v0.1

Install

PyPI

[!NOTE] Recommended installation method.

pip install yw-jupyter

Install from source

[!WARNING] Avoid installing from source unless you need the latest features or development mode.

  • Requirements:
    • JupyterLab >= 4.0.0
    • yw-core >= 0.1.0, < 1.0.0
git clone https://github.com/CIRSS/yw-jupyter.git yw-jupyter
cd yw-jupyter
jlpm install
jlpm build:lib
jlpm build:prod
jupyter labextension develop . --overwrite

Troubleshooting

Make sure we see yw-jupyter is enabled in JupyterLab extensions list:

>>> jupyter labextension list
JupyterLab v4.5.3
~/Documents/GitHub/yw-jupyter/.venv/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        yw-jupyter v0.1.0 enabled OK

Known Issues and Future Work

  • Code block's cursor in graph node not matching the actual cursor position.
  • Currently, support only static analysis of notebook cells using yw-core. Supporting dynamic analysis via runtime provenance capture is planned for future releases.
  • Bugs when multiple notebooks and yw-jupyter extensions are open in JupyterLab simultaneously.

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

yw_jupyter-0.0.2.tar.gz (10.5 MB view details)

Uploaded Source

Built Distribution

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

yw_jupyter-0.0.2-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file yw_jupyter-0.0.2.tar.gz.

File metadata

  • Download URL: yw_jupyter-0.0.2.tar.gz
  • Upload date:
  • Size: 10.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yw_jupyter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c7eb6bc24b446763d77cddde0e1322df1118e5aec49b6e8e2b6c63246f571f09
MD5 46f486f67d3f4ea4efa7e756d55ccaa5
BLAKE2b-256 dc0385a657a35108dbb7e110bab9b8066e5b02424511a81a45941f843667399c

See more details on using hashes here.

File details

Details for the file yw_jupyter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: yw_jupyter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yw_jupyter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03b115e24f2a924acee18f3e45c8c676d3905644d1373c16654ebff028edda8b
MD5 5f940c4574248c4d5e79d38415a77c8d
BLAKE2b-256 428a7e1a67a5d3e1e48f18efb2be3dbc013409ea7fbaf8c1a7986cf893d7f083

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