Skip to main content

Jupyter-Jsonnet

This package provides a Jupyter Kernel to support the Jsonnet language. It is based on the official Jsonnet Python bindings.

After installing it, you need to register it to Jupyter with the command:

python3 -m jupyter_jsonnet.post_install

This kernel extends jsonnet syntax slightly to permit

  • Cells containing only statements (These produce no result, but are checked for errrors).
  • Definitions (statements) from previous cells to carry over, even if the cell containing the definition produced a result.
  • Using //jupyter: string as the first line of a cell causes the output to be the raw string instead of the json-escaped version, similarly to --string at the CLI. For use with e.g. std.manifestTomlEx()

The parsing to separate statements from expressions is very simple, and can easily be fooled by semicolons that do not terminate statements, like in comments or strings.

Building from Source

Ensure PyPA build is installed:

pip3 install build
python3 -m build

I don't currently have a satisfactory way of doing develop/editable installs.

Release files for jupyter-jsonnet 0.4

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

Source distribution (sdist)

Source distribution for jupyter-jsonnet 0.4
File Size Uploaded
jupyter-jsonnet-0.4.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-jsonnet 0.4
File Interpreter ABI Platform
jupyter_jsonnet-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / jupyter-jsonnet-0.4.tar.gz

Download URL jupyter-jsonnet-0.4.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
47ffdb12bd635ab98a6b4b88ebdf2f4f69891409bdb1fdf5e5ef28d66a6c2e56
BLAKE2b-256 checksum
How to use checksums
2cfc280079fd9440544e7067ec3d30af7e46d2a4d232c66119d861044f7ecc3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / jupyter_jsonnet-0.4-py3-none-any.whl

Download URL jupyter_jsonnet-0.4-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2c9debefa24da270d4ba8451de206fa8831ba5ae4b12ccd8ef3dbdb85674203
BLAKE2b-256 checksum
How to use checksums
b7873381b0e42658d85bc5007a91d47ee80372699db130cf2513f23d226c323a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

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