Deploy interactive Jupyter notebook on Spaces with Mercury
Hi All!I’m working on aframework Mercuryfor 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 aGradioapp on Spaces (my framework is not supported, yet). You need to add theapp.pyfile that will run the Mercury server and upload the notebook. You can check the details in thedocs.Enjoy! In case any questions, I’m happy to help.
2023-05-22T06:33:42Z
I’ve made significant changes in theMercuryframework. In version 2, we moved from YAML config to Python API to define widgets. Here is anew documentationon how to deploy notebooks as web apps.