Panel app made for Heroku CLI
To get started working with Heroku signup for a free account and download and install the CLI. Once you are set up follow the instructions to log into the CLI.
panel serve skill_app.py
-
Clone this repository
-
Modify the
Procfile
which declares which command Heroku should run to serve the app. In this sample app the following command serves theskill_app.py
example and the websocket origin should match the name of the app on Herokuskill-app.herokuapp.com
which you will declare in the next step:
web: panel serve --address="0.0.0.0" --port=$PORT skill_app.py --allow-websocket-origin=skill-panel.herokuapp.com
-
Create a project in heroku
-
Visit the app at skill-app.herokuapp.com
In order to serve your own app simply replace the skill_app.py
with your own Jupyter notebook or Python file declaring a Panel app and then modify the Procfile
to start that app instead.