> For the complete documentation index, see [llms.txt](https://docs.rumbledb.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rumbledb.org/getting-started/in-jupyter-notebooks.md).

# In jupyter notebooks

The Python edition of Rumble can be used to directly write JSONiq and XQuery queries in Jupyter notebook cells thanks to the `%%jsoniq` and `%%xquery` magics. This is explained [here](https://docs.rumbledb.org/writing-jsoniq-queries-in-python/writing-queries-directly-in-jupyter-notebook-cells.md). You first need to install the library as described [here](https://docs.rumbledb.org/getting-started/as-a-pip-package.md).

This is what it looks like:

<figure><img src="https://2965105140-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL4Qg2289cGjM6lVrweL8%2Fuploads%2FWsKcCU1c0cI6L3Hfg00U%2Fmagic.png?alt=media&amp;token=ce68ce69-46be-4919-ad76-cdf9eaa6cf3e" alt=""><figcaption></figcaption></figure>
