To get started with JupyterLite without using GitHub, you can deploy and run it locally or on any standalone web server by following these steps:
1. Install JupyterLite Core Package
Install the jupyterlite-core Python package, which provides the necessary static assets to build a JupyterLite site:
python -m pip install jupyterlite-core
Alternatively, you can install it via conda or mamba:
conda install -c conda-forge jupyterlite-core
# or
mamba install -c conda-forge jupyterlite-core
2. Initialize and Build a JupyterLite Site
Create an empty JupyterLite site with default assets by running:
jupyter lite init
This will create the site structure in the _output directory by default. You can specify a different output directory:
jupyter lite build --output-dir dist
If you want to include a Python kernel (Pyodide) for running Python code, install the Pyodide kernel package:
python -m pip install jupyterlite-pyodide-kernel
Then rebuild the site to include the kernel:
jupyter lite build
3. Serve the JupyterLite Site Locally
Once built, you can serve the static site files using a simple HTTP server. For example, with Python 3.7+:
python -m http.server -b 127.0.0.1
This will serve the site locally at http://127.0.0.1:8000 by default. You can open this URL in your browser to use JupyterLite.
Alternatively, you can use the built-in JupyterLite serve command:
jupyter lite serve
This command starts a server powered by Python’s http.server or tornado if available, with options to customize port and logging.
4. Customize Your JupyterLite Site (Optional)
You can add your own notebooks, files, and configuration to the site directory before building. The default site is empty, so adding content is necessary to have your own notebooks available.
5. Notes on Usage
-
JupyterLite runs entirely in the browser; your data is stored locally in browser storage (IndexedDB or localStorage) and does not leave your machine unless you explicitly share it.
-
Serving WebAssembly (.wasm) files requires your HTTP server to serve them with the correct MIME type (application/wasm).
-
HTTPS is recommended for anything beyond simple local testing.
Summary
| Step | Command / Action | Notes |
|---|
| Install core package | python -m pip install jupyterlite-core | Or via conda/mamba |
| Initialize site | jupyter lite init | Creates default site in _output |
| Add Pyodide kernel | python -m pip install jupyterlite-pyodide-kernel | Optional, for Python kernel support |
| Build site | jupyter lite build | Builds static assets |
| Serve site locally | python -m http.server or jupyter lite serve | Access via browser at localhost |
This approach lets you run JupyterLite fully locally or on any static web server without relying on GitHub or GitHub Pages[1].
If you want to try JupyterLite instantly without setup, you can also use public deployments by visiting their URLs in a browser, but for a fully local or standalone setup, the above method is recommended[3].