Convert Jupyter notebook into interactive web apps & more.
Let's refer to Mercury official site to get deep dive
Create Python Virtual Environment
python3 -m venv venv
Activate virtual environment
source venv/bin/activate
Install packages
pip install -r requirements.txt
Add notebook
mercury add sample_report.ipynb
Run mercury service
mercury run
You can easily embed notebooks served with Mercury.
- Open browser http://localhost:8000/
- Click on sample report card
- Copy page URL (i.e. http://127.0.0.1:8000/app/sample_report)
- Add /embed at the end of the URL address.
- Insert iframe in the website where you would like to embed a notebook.
<iframe src="http://127.0.0.1:8000/app/sample_report/embed" height="700px" width="1200px"></iframe>