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
jupyter-jsonnet-0.4.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for jupyter_jsonnet-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c9debefa24da270d4ba8451de206fa8831ba5ae4b12ccd8ef3dbdb85674203 |
|
MD5 | 7c4444cf5336059b5f0b0883d6ba6d24 |
|
BLAKE2b-256 | b7873381b0e42658d85bc5007a91d47ee80372699db130cf2513f23d226c323a |