Mercury serves Jupyter notebooks as interactive web apps with widgets and layout handled automatically. Viewers change inputs without seeing notebook code.
Overview
Mercury is an open-source framework that turns Python notebooks into responsive web applications. You keep analysis in a .ipynb file; Mercury renders widgets, navigation, and styling so colleagues who do not code can explore results in a browser.
The model is reactive: when a widget value changes, cells below it re-execute. There are no callback handlers to maintain—notebook code reads widget values in normal top-to-bottom order. Mercury includes a widget library, a standalone server that exposes notebooks as apps, and a JupyterLab extension for live preview during development.
You start the server with the mercury command, which by default discovers notebooks in a working directory and serves them on a home page. Optional password protection, shared sessions, timeouts, and a config.toml file customize titles, footer text, thumbnails, and welcome messaging. Deployment is documented with a minimal Docker image; a hosted deployment option is also mentioned separately from the open-source server.
The project targets data-rich apps such as dashboards, reports, chats, and simple agent-style interfaces, and is positioned for science, research, and data work where sharing interactive results matters.
Key features
- Reactive widget-driven notebooks
- Standalone app server for notebooks
- JupyterLab live preview extension
- Password-gated server access
- config.toml app customization
- Docker-based deployment path
- Shared or per-viewer Python sessions
Use cases
- Sharing notebook dashboards with business users
- Interactive reports for non-programmers
- Teaching materials as web apps
- Parameter-driven data scenarios