Deploy interactive Jupyter notebook on Spaces with Mercury

Hi All!

I’m working on a framework Mercury for converting Python notebooks into interactive web apps. You can add widgets to the notebook based on the YAML configuration. End-user can tweak widgets values and execute the notebook. The resulting notebook can be downloaded as single-file HTML. Simple.

The framework is built on Django+React. It is easy to deploy to Heroku or other cloud services. Recently, I made it possible to deploy it to Hugging Face Spaces (faster and larger machines than on free tier Heroku).

The process of deployment is simple. You need to create a Gradio app on Spaces (my framework is not supported, yet :wink: ). You need to add the app.py file that will run the Mercury server and upload the notebook. You can check the details in the docs.

Enjoy! In case any questions, I’m happy to help.

mercury-hugging-face-spaces

2 Likes

I’ve made significant changes in the Mercury framework. In version 2, we moved from YAML config to Python API to define widgets. Here is a new documentation on how to deploy notebooks as web apps.

1 Like