Construct Panes#

This guide addresses how to construct Pane objects for displaying visible components.

There are two main ways to construct a pane - explicitly or automatically.

To explicitly construct a pane, use one of the pane types listed in the component gallery. For example, you can create a Markdown pane as follows:

import panel as pn
pn.extension() # for notebook

# H1
## H2
### H3

Alternatively, you can create a pane using the pn.panel() utility to automatically infer the pane type from the object being passed as the argument:

png = pn.panel('', width=500)