Skip to main content

A JupyterLab extension for visualizing notebook cells using YesWorkflow.

Project description

yw-jupyter

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yw_jupyter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 295651e4d5cf1987cf34e6ad168877bb4ab39f443b926050a4123281972c9079
MD5 583b8592e89205fad52ffef6d3c4b70a
BLAKE2b-256 89b9a634962fbe5779c7ac95d43b5c984c7037899924d0f364301067ec8ee214

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yw_jupyter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5bbaac0e26ac5b7ce373d073d860cd90df5ce9a0ced41c5398848b5cc238d9
MD5 7e476c19f8fdc177ab0d9a78177f6ee5
BLAKE2b-256 d30ac2c69525e60aa5dc2678bfcf5601a442abad8b00634e3ce2cd125139df1c

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