Skip to main content

stitch

Build Status codecov

Bidirectional comms for Jupyter and JavaScript.

Installation

You can install using pip:

pip install guidance-stitch

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:

jupyter nbextension enable --py [--sys-prefix|--user|--system] guidance-stitch

Development Installation

Create a dev environment:

conda create -n stitch-dev -c conda-forge nodejs python jupyterlab=4.0.11
conda activate stitch-dev

Install the python. This will also build the TS package.

pip install -e ".[test, examples]"

When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:

jupyter labextension develop --overwrite .
jlpm run build

For classic notebook, you need to run:

jupyter nbextension install --sys-prefix --symlink --overwrite --py guidance-stitch
jupyter nbextension enable --sys-prefix --py guidance-stitch

Note that the --symlink flag doesn't work on Windows, so you will here have to run the install command every time that you rebuild your extension. For certain installations you might also need another flag instead of --sys-prefix, but we won't cover the meaning of those flags here.

How to see your changes

Typescript:

If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

Python:

If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

Updating the version

To update the version, install tbump and use it to bump the version. By default it will also create a tag.

pip install tbump
tbump <new-version>

Metadata

Release files for guidance-stitch 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for guidance-stitch 0.1.5
File Size Uploaded Provenance Actions
guidance_stitch-0.1.5.tar.gz 185.4 kB Without provenance Details for guidance_stitch-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for guidance-stitch 0.1.5
File Interpreter ABI Platform Actions
guidance_stitch-0.1.5-py3-none-any.whl Python 3 none any Details for guidance_stitch-0.1.5-py3-none-any.whl

Total release size: 294.2 kB

Release files / guidance_stitch-0.1.5.tar.gz

Download URL guidance_stitch-0.1.5.tar.gz
Size 185.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2a0d0ede865db387857d494a7bcb1a903621c13f571869cde1109c2c5569cd95
BLAKE2b-256 checksum
How to use checksums
f8ff324130d5dd970c005fb54f633e20da532d6bb5eae8e1176c8be4bab894b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / guidance_stitch-0.1.5-py3-none-any.whl

Download URL guidance_stitch-0.1.5-py3-none-any.whl
Size 108.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22ab8c5e9b5db36eeb0d54822797d02c8de658595dea3b9662708edb2274f6d1
BLAKE2b-256 checksum
How to use checksums
556f24a042f87de344d707a4c9bb11235b54df1b6f5dc5d641935deb2fb01428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for guidance-stitch 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page