JSONiq JupyterLab Extension
jsoniq-jupyterlab-extension is a JupyterLab extension for JSONiq: it highlights %%jsoniq cells and .jq files, and connects them to the JSONiq language server.
Features
- Syntax highlighting -
%%jsoniqcells and.jqfiles are highlighted with the same TextMate grammars as the VS Code extension, and%%sparksqlcells as SQL. - Language server - completions, diagnostics, hover documentation, signature help, go to definition and rename for
%%jsoniqcells and.jqfiles.
Installation
Install the extension from Python packaging. No npm or yarn installation is required for users.
The language server runs with Node.js, which must be on the PATH of the Jupyter server. Completions of fields and types also need Java 17 or later; RumbleDB is downloaded on first use. To run another build of the language server, set JSONIQ_LSP_SERVER to its main.mjs.
RumbleDB is downloaded to the user's cache directory, or to JSONIQ_LSP_CACHE_DIR. To download it ahead of time, for example when building an image:
python -m jsoniq_jupyterlab_extension ensure-wrapper
To install, run:
pip install jsoniq-jupyterlab-extension
After installing the package, you may need to enable the extension in JupyterLab:
jupyter labextension enable jsoniq-jupyterlab-extension
Usage
Once the extension is installed and enabled, it automatically recognizes jsoniq magic cells and files for syntax highlighting.
Example
%%jsoniq
for $book in json-file("books.json")
where $book.price lt 20
return $book.title
This cell should become highlighted.
Development
-
Clone the repository and install the dependencies:
git clone https://github.com/RumbleDB/jsoniq-jupyterlab-extension.git cd jsoniq-jupyterlab-extension pnpm install uv sync
-
Build the extension, and link it into JupyterLab so that rebuilds take effect:
uv run pnpm run build uv run jupyter labextension develop . --overwrite
-
Launch JupyterLab.
pnpm run watchrebuilds the extension when the source changes; reload the page to see it.uv run jupyter lab
Run the tests with pnpm test and uv run pytest. uv run pnpm run build:prod builds the extension for release.
Project Structure
src/: The JupyterLab extension: highlighting incode-mirror/, the language server client inlsp/.jsoniq_jupyterlab_extension/: The Jupyter server extension, which runs a language server for each JupyterLab tab.schema/: The extension's settings.scripts/: Copies the language server into the Python package when building.tests/: Tests of the highlighting.
Contributing
We welcome contributions to the jsoniq-jupyterlab-extension project! If you have any suggestions, bug reports, or pull requests, please feel free to submit them on the GitHub repository.
License
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
Metadata
Release files for jsoniq-jupyterlab-extension 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jsoniq_jupyterlab_extension-3.0.0.tar.gz | 791.9 kB | With provenance | Details for jsoniq_jupyterlab_extension-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jsoniq_jupyterlab_extension-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for jsoniq_jupyterlab_extension-3.0.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / jsoniq_jupyterlab_extension-3.0.0.tar.gz
| Download URL | jsoniq_jupyterlab_extension-3.0.0.tar.gz |
|---|---|
| Size | 791.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16d4e75471cbe011da29a3c0e1bb7f644687251464e64207f2f803db65e2f951
|
|
BLAKE2b-256 checksum How to use checksums |
b679c440d21d1ef0d6f460322c4232398a8fa329361bc56383f7b6a5a0fcff48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / jsoniq_jupyterlab_extension-3.0.0-py3-none-any.whl
| Download URL | jsoniq_jupyterlab_extension-3.0.0-py3-none-any.whl |
|---|---|
| Size | 610.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0335930e09bfad758eccaf292cd5d1472faa39f535df5a786d02988f78172637
|
|
BLAKE2b-256 checksum How to use checksums |
23a384090aaf1b99994fa134411d1a714779a3c8b345d371585ffca167a3b335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for jsoniq-jupyterlab-extension 3.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for jsoniq_jupyterlab_extension-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA 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.