Skip to main content

Embed interactive JupyterLite notebooks in your MkDocs site.

Project description

mkdocs-jupyterlite

PyPI - Version

A MkDocs plugin that enables embedding interactive jupyterlite notebooks in your docs.

Say you have a notebook example.ipynb in your awesome project, and you want users to be able to play around with it. In the past, you could use a tool like Binder to achieve this. But, that requires a full docker environment and a remote server. By using JupyterLite, you can run Jupyter notebooks directly in the browser without any server-side dependencies.

However, to use jupyterlite, you have to manually install jupyterlite and then run a build step to package your notebooks, other files, and python dependencies into a single static site.

This plugin automates that process for you.

Installation

  1. Install the plugin
pip install mkdocs-jupyterlite
  1. Configure in your mkdocs.yml file
plugins:
  - search
  - mkdocstrings
  - etc
  - jupyterlite:
      enabled: true
      notebook_patterns:
        - "**/*.ipynb"

This doesn't currently support installing custom python packages into the JupyterLite environment, but this should be possible to support in the future.

Contributing

I want this to be usable for other people, so file an issue if you want to use this in your site, but run into any problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_jupyterlite-0.1.1.tar.gz (79.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_jupyterlite-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_jupyterlite-0.1.1.tar.gz.

File metadata

  • Download URL: mkdocs_jupyterlite-0.1.1.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdocs_jupyterlite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 970c619c1b7f4744d3d46c2305e07ff33680fcbf5ea9ccb79b1a0c9c1f86a21f
MD5 a1978ea8c41f738e4877ffa1b6fad477
BLAKE2b-256 dadfa4a5df4d93f5e5830e1b8ac8c4ac6884cd13d2c69df07fd38380ee7853c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_jupyterlite-0.1.1.tar.gz:

Publisher: publish.yml on NickCrews/mkdocs-jupyterlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_jupyterlite-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_jupyterlite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa26895444909c97fad96d65697f4ed1bc5dca50c92556d5c3d88b5635bf708
MD5 21d73e77e24cb65bb0ad64155ba45120
BLAKE2b-256 7b9b1094af9c5637ff3fdfde5c276b026ce1c08c1011625edb21a573ad9f53d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_jupyterlite-0.1.1-py3-none-any.whl:

Publisher: publish.yml on NickCrews/mkdocs-jupyterlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page