Display Objects with Panes
In Panel the objects that can display your Python objects are called panes. With Panels panes you will be able to:
Get notifications about interactions like click events on your plots and tables and react to them.
Use unique data visualization ecosystems like HoloViz, ipywidgets and VTK.
Check out the Panes Section of the Component Gallery for the full list of panes.
Migration Steps
To display content in Panel:
Replace your Streamlit
st.some_objectsnake cased functions with the corresponding Panelpn.pane.SomeObjectCamelCased classes.Replace your Streamlit text elements with
pn.pane.Markdown.
Identify the relevant Panel panes in the Panes Section of the Component Gallery.
Examples
Matplotlib Pane
Streamlit Matplotlib Example

Panel Matplotlib Example
You will find Panels panes in the pn.pane module.
We use Matplotlibs Figure interface instead of the pyplot interface to avoid memory leaks if you forget to close the figure. This is all described in the Matplotlib Guide.

Markdown Pane
You can replace st.markdown with pn.pane.Markdown.
You can also use the Markdown pane to replace the text elements st.title, st.header, st.sub_header, st.code and st.text.
You may use the Markdown pane to replace st.divider and st.latex, but you can also use the specialized Panel components pn.layout.Divider and pn.pane.LaTeX.
Here is how to do it
