Skip to main content
Anaconda Notebooks supports previewing and deploying your notebooks as Panel applications. Panel is a Python-first web framework designed for data applications that allows you to create interactive web applications directly from your existing notebook environment. For more information, see the official Panel docs. With Panel, you can share your data and analysis with colleagues and stakeholders through interactive web interfaces. This guide outlines how to preview and deploy your Panel app at a custom URL.

Creating Panel apps

You can create a Panel app by either importing Panel and using the .servable() method or through the drag-and-drop Layout Builder:
  • Importing Panel
  • Layout Builder
  1. Import the Panel library into your notebook.
  2. Create your Panel components.
  3. Use the .servable() method to mark the Panel components you want to include in your dashboard.
  4. (Optional) If you want to render your Panel app output in your notebook, include the panel.extension to ensure the required JavaScript and CSS resources are loaded.
    Example Panel app
    import panel as pn
    pn.extension()
    pn.Row("Hello, World!").servable()
    
  5. View a preview of your dashboard by selecting Preview with Panel.

Publishing Panel apps

To publish a Panel app:
  1. Click Save and publish at the top of the notebook.
  2. 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.
  3. Click View App to view the app in Notebooks.
  4. Click actions, then View in New Browser Tab to open your app in a new tab.
  5. 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:

Troubleshooting

I published a Panel app, but the app is blank.

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.