How to create a Streamlit Multi-Page Web App

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
From streamlit version 1.10 onwards, you can now create native streamlit multipage web apps. In this tutorial, I will walk you through an example of how to develop such a streamlit multipage web app. In particular, I will show you how to add multiple pages, including favicons and how to use the streamlit session state to share variables/values between pages.
To follow along, ensure to use the latest streamlit version by running โ€˜pip install streamlit --upgradeโ€™

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:

โญ ๐—ง๐—œ๐— ๐—˜๐—ฆ๐—ง๐—”๐— ๐—ฃ๐—ฆ:
00:00 โ€“ Intro
00:14 โ€“ Create a basic streamlit app
01:10 โ€“ Add multiple pages
02:10 โ€“ Order pages
02:47 โ€“ Add emojis before the page name
03:50 โ€“ Share session state variables
05:20 โ€“ Final words
06:02 โ€“ Outro

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

As a Streamlit engineer i can tell you, that was one of the most over-discussed and hotly contested features on the roadmap ๐Ÿ˜‚. Glad to see it finally in use. Good job on the explainer, this is really good.

nthmost
ะะฒั‚ะพั€

Looks awesome, thank you for the video! I think I am going to use this for a new project. ๐Ÿค”

Also I cannot stress enough how useful such short demo videos are to me. It's great to understand in 5 minutes what exactly a project can do and how you use it -- much better than 45 minute presentations of 5284 different features!

TK-pesf
ะะฒั‚ะพั€

Hey, itโ€™s so nice to see your videos - was binge watching them . Congratulations on your amazing video quality production and ofcourse the content . ๐ŸŽ‰

Avra_b
ะะฒั‚ะพั€

I hope you liked this short video on the new Streamlit multi-page feature. *Happy Streamlit-ing!* ๐ŸŽ‰

CodingIsFun
ะะฒั‚ะพั€

Thank you so This saved me tons of time as people use different ways of navigation. But this one is much better.

TamNguyen-cyix
ะะฒั‚ะพั€

Thank you very much, Sir. You are the best Python tutor in the world. I am not that good at writing and understanding complicated English, but I can easily understand Your English.๐Ÿ™Œ๐Ÿ™Œ And your python Videos like building websites are Super๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ

Black_Hawk
ะะฒั‚ะพั€

Nice to see this channel picking up the pace.

arunasrancevas
ะะฒั‚ะพั€

Dear Sven, I like your short and really informative Python tutorials. You ask for new topics: Such a topic (actually related to pages) could be the new tabs function introduced in streamlit 1.1. โค Finn

Fimaniac
ะะฒั‚ะพั€

Wow this was a good entry tutorial. Iโ€™m going to get my hands dirty with this library.

cloudagnostic
ะะฒั‚ะพั€

Idea for the next video: please make a tutorial how to make different oauth methods like: Google Oauth, Apple Oauth in Streamlit App.

Thank you, Great Video!

armantech
ะะฒั‚ะพั€

Cool! I could add pages to my web app. Thank you man!

jesusadraz
ะะฒั‚ะพั€

Really amazing tutorial . Thanks alot. You are really helpfull for beginner like me.

Diogene-pllq
ะะฒั‚ะพั€

Thank you! This is one of the best videos on the subject.

Can someone help me with an issue? When I'm on page 'X' in the menu, the background color changes to a darker shade, and the text turns solid black. However, on the other pages, the text appears in a lighter black, almost as if there's a transparency effect. How can I make all the text in the menu solid black? Thanks!

viniwata
ะะฒั‚ะพั€

Thanks you. Good job. We want more. Thank

ndmad
ะะฒั‚ะพั€

Missed being the first one to see your video. Maybe next time!!!

kaoh
ะะฒั‚ะพั€

Hello Sven, I love watching your videos and I learned a lot of things from you. And now, I want to make a data analysis web app and I'm wondering about how can we deploy a streamlit app on a hosting or server with a domain? Could you share with us how can we do that? Thanks a lot.

selim
ะะฒั‚ะพั€

If you click the projects tab, the homepage tab will not work or disable, when the process is running in projects tab

manikantachinnipilli
ะะฒั‚ะพั€

Thanks for the video walkthrough. Can you customize the look of the page tabs and the navbar? Using CSS or something?

ryanblumenow
ะะฒั‚ะพั€

Thx for sharing! Because I'm a newbee: How do you get the emoji into your Py-Code? Which library is needed?

burkhardleuthner
ะะฒั‚ะพั€

NIce! Can you make video about secure Streamlit login with PyJWT for database?

miciglaric