jupyter-myst-build-proxy
A Jupyter server extension that serves and proxies static MyST websites.
Overview
jupyter-myst-build-proxy helps JupyterHub users development MyST-based websites. It can build the static HTML assets and serve them from a minimal python web server, allowing users to view MyST sites directly in a JupyterHub environment.
Features
- Path-based routing: Access MyST projects at
/myst-build/<project-path>/ - On-demand building: Automatically builds MyST sites when first accessed
- Rebuild support: Trigger rebuilds with
?rebuild=1query parameter - Multiple projects: Serve different MyST projects from subdirectories
- Error handling: Shows helpful error page when
myst.ymlis missing
Installation
pip install jupyter-myst-build-proxy
Usage
Basic Usage
With a jupyter application running, visit /myst-build/<project-path>/ where <project-path> is a directory containing a MyST project (with myst.yml).
Example 1: Jupyter server on localhost
http://localhost:8888/myst-build/my-documentation/
Example 2: Jupyter server on a JupyterHub
https://jupyterhub.example.edu/user/username/myst-build/my-website/
Configuration
Set the default directory using the JUPYTER_MYST_BUILD_PROXY_DIR environment variable to specify an alternative root for where the extension finds MyST projects. The default is the user's current working directory.
Rebuilding Sites
To force a rebuild of a MyST site, add ?rebuild=1 to any page URL:
http://localhost:8888/myst-build/my-documentation/?rebuild=1
This will delete the _build/html directory and regenerate the site.
Rebuild button
To have jupyter-myst-build-proxy run a post-build script which injects a "Rebuild" button into your site, set the JUPYTER_MYST_BUILD_PROXY_POSTBUILD environment variable to any value.
With this functionality enabled, users click this button instead of editing the URL to trigger a rebuild.
How It Works
-
When you access
/myst-build/<project-path>/, the extension:- Checks if
<project-path>/myst.ymlexists - If the site hasn't been built, runs
myst build --html --ciwith the appropriateBASE_URL - Serves the static HTML from
<project-path>/_build/html/
- Checks if
-
The extension uses path-based routing to ensure all assets and navigation links work correctly with the
/myst-build/<project-path>/prefix.
Requirements
jupyter-server-proxy>= 4.1.0mystmd(MyST Markdown CLI tool)
Project Structure
jupyter-myst-build-proxy/
├── jupyter_myst_build_proxy/
│ ├── __init__.py # Main extension setup
│ ├── static_server.py # HTTP server for serving MyST sites
│ ├── building.html # Building status template
│ ├── directory_browser.html # Directory browser template
│ └── logo-square.svg # MyST logo
├── tests/ # pytest tests
├── setup.py # Package configuration
└── README.md # This file
Metadata
Release files for jupyter-myst-build-proxy 0.6.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 | |
|---|---|---|---|
| jupyter_myst_build_proxy-0.6.0.tar.gz | 96.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_myst_build_proxy-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.4 kB
Release files / jupyter_myst_build_proxy-0.6.0.tar.gz
| Download URL | jupyter_myst_build_proxy-0.6.0.tar.gz |
|---|---|
| Size | 96.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfe023534b2d7b520abb272bf58c7d55f98ba00b806cb2bb8f1f898957647757
|
|
BLAKE2b-256 checksum How to use checksums |
fca6a5ca679d7597f8015bc9ebc35a5652f69b56ecfe297674a3634419ef454d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 10, 2025.
Transparency logRelease files / jupyter_myst_build_proxy-0.6.0-py3-none-any.whl
| Download URL | jupyter_myst_build_proxy-0.6.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d0038db0e9e7d5ab5375f45f6fe861e47d48d3f30b8d9c3a13b7521e19ecadb
|
|
BLAKE2b-256 checksum How to use checksums |
4138b743a8f19c85a200341e53b8ae868b49364b7c080eae2ba6fe153d4e07c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 10, 2025.
Transparency log