A simple Jsonnet kernel for Jupyter
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jupyter-jsonnet-0.4.tar.gz
.
File metadata
- Download URL: jupyter-jsonnet-0.4.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ffdb12bd635ab98a6b4b88ebdf2f4f69891409bdb1fdf5e5ef28d66a6c2e56 |
|
MD5 | f59efbc4c45d47a7f4bf0016ee77ec48 |
|
BLAKE2b-256 | 2cfc280079fd9440544e7067ec3d30af7e46d2a4d232c66119d861044f7ecc3d |
File details
Details for the file jupyter_jsonnet-0.4-py3-none-any.whl
.
File metadata
- Download URL: jupyter_jsonnet-0.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c9debefa24da270d4ba8451de206fa8831ba5ae4b12ccd8ef3dbdb85674203 |
|
MD5 | 7c4444cf5336059b5f0b0883d6ba6d24 |
|
BLAKE2b-256 | b7873381b0e42658d85bc5007a91d47ee80372699db130cf2513f23d226c323a |