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.1.0.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.1.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yw_jupyter-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 8bf84a836b69eacfad678cc3d0af501cadd6106bb55e4f4f5d83403e96b0a925
MD5 5601dbefac3f604564a0d4aea494d456
BLAKE2b-256 1dcb28a5d37d57aa100817a6b5553f7626d0db3c7ce73dce08dbba8e48fd6a47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yw_jupyter-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62285178c53a26038d774c46c0a9ec8c8b31800e842fd04e9f30ed22baea6080
MD5 2af103d29e94e5cbe801954aec3de451
BLAKE2b-256 0d724dfcce605ff6bb101a998e65a96ac03b814605d141b9379e0737a287e526

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