I finally learned how to build and serve apps with Panel!
Here are the key ideas:
- Prototype the app inside a Jupyter notebook. That gives the real-time feedback on whether your apps/widgets are working or not.
- The most important thing is that the final thing you package together is now a
- Use Panel’s
serve command to test the app locally. It’s actually quite magical - the serve command can actually parse a Jupyter notebook and serve it up on a local web server.
- When you’ve confirmed that everything is working properly locally, Heroku is a great deployment option. Using the default Python buildpack and a
requirements.txt file, one can easily specify the exact Python environment for deployment.
As a pedagogical implementation, I put up a minimal panel app on GitHub, and also served it up on Heroku. Come check it out! I hope it’s useful for you.