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
pn.pane.Markdown('''
# 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('https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png', width=500)
png