Path: blob/main/doc/how_to/streamlit_migration/get_started.md
2012 views
Serve Apps
This guide will show you how-to migrate and serve a Hello World application.
Migration Steps
You should replace:
import streamlit as st
withimport panel as pn
andst.write
withpn.panel
.
You will have to:
add
pn.extension
to configure your Panel application via optional arguments likesizing_mode
andtemplate
.add
.servable
to the Panel objects you want to include in your apps template when served as a web app.
For production you will also have to migrate some of your app configuration to panel serve
command line options or environment variables.
Examples
Hello World
Lets show how to convert a Hello World application.
Streamlit Hello World Example
You run and show the app with autoreload via
Panel Hello World Example
You serve and show (i.e. open) the app in your browser with autoreload via