Would you like to quickly turn your Python notebook into static website? It is very easy with Mercury framework.
You need to do simple 3 steps:
App
object and set static_notebook=True
in constructor.You can read more here about different ways to install Mercury package.
The easiest way is to run:
2. SetApp
object with static_notebook=True
Please open the notebook that you would like to convert to a static website. You need to add following code in it:
import mercury as mr
# configure App properties
app = mr.App(title="Static notebook", description="Display static notebook", static_notebook=True)
Please set static_notebook=True
- it will do the magic!
The last step is to run Mercury Server. Please run the following command:
You should see in the web browser at address http://127.0.0.1:8000
a website like in the image below:
In the above screenshot only one notebook is served. Please click in the notebook title and you will see selected notebook website:
You can download notebook as PDF or HTML format.
Additional notesshow_code=True
in App
constructor.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4