Publishing notebooks
This guide shows you how to preview and publish your Panel app at a custom URL. Publishing deploys the app on Anaconda Notebooks so you can share it with others.
Previewing Panel apps
Preview your Panel app in your notebook by clicking Preview with Panel at the top of your notebook.
In order to successfully deploy, your panel app must contain at least one output marked as .servable()
and load the panel.extension
to ensure the required JavaScript and CSS resources are added to your notebook environment. If your preview fails to display, see Troubleshooting below for help.
Publishing Panel apps
To publish a Panel app:
-
Click Save and publish at the top of the notebook.
-
Click Publish. Your app appears under My Apps on the Apps Management page.
The page will appear as a 502 Bad Gateway until the publication process is complete.
-
Click View App to view the app in Notebooks.
-
Click actions, then View in New Browser Tab to open your app in a new tab.
-
Copy the URL from your browser’s address bar to share with others.
You can also restart, unpublish, download, and more from the actions menu.
Publishing limits
The number of apps you can publish depends on your subscription tier. See our pricing page for details.
Further Panel resources
Here are some additional resources to help you familiarize yourself with Panel and use it more effectively:
- Familiarize yourself with Panel with the getting started guide.
- Learn how to display output in Jupyter-based notebooks.
- Discover how to use specific features in the how-to guide.
- Explore different components and how to use them with the component gallery.
- Gain inspiration from the app gallery.
Troubleshooting
I published a Panel app, but the app is blank.
In order to successfully deploy, your panel app must contain at least one output marked as .servable()
and load the panel.extension
to ensure the required JavaScript and CSS resources are added to your notebook environment. Take this minimal “Hello, World!” program, for example:
If you added content to your app but there’s still nothing showing up, ensure that your notebook can be run from top to bottom. The easiest way to test this is to select Run in the top menu, then select Run All Cells.
I published an app, but it’s stuck in a “publishing” state.
If your app is stuck in the “Your app is being published” state, check your notebook error logs. Address any issues raised and republish.