Multipage app

Summary

i have a multipage app i added new pages into the pages folder but they dont show in the side bar

Share a clear and concise description of the issue. Aim for 2-3 sentences.

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

Can you provide us with a bit more information like your folder structure?

When you create a multipage app you folder structure should look like the following:

|------> streamlit_app.py
|------> pages
           |
           |------> page1.py
           |------> page2.py

where the streamlit_app.py is the main app that you run using the following command streamlit run streamlit_app.py

sorry. i just find out that the pages are there but the sidebar where the list of pages are show has a side scroll. how can I increase the page list so it will show all the pages without having to scroll
my structure is
Home.py
page1
page 2
page3

how can i eliminate the vertical scroll bar and see all the pages

Hi, I’m having the same problem. My pages aren’t showing on the sidebar and I don’t know why.
My structure is:
-Hello.py
-pages/
-1_signup.py
-2_login.py
-3_app.py
-4_genrerecom.py

@daniloandujar I can also recommend you look into streamlit extras module from victoryhb for a custom menu if you do not like the standard one:

@Yasmin_Danmusa I have the following structure on Github with folder <github_name>/30DaysofStreamlit/tutorialapp/Home.py as my main folder of .py file and added a subfolder called pages which has:
1 - Day_1.py
2 - Day_2.py
etc.

image

  1. Can you check if it is the naming convention of your pages files e.g. use spaces: 1 - signup.py
  2. Can you add the Github project in a subfolder and see if that resolves it?

Let me know if option 1 or 2 worked

Hi, thank you so much for taking your time to reply. Apparently, the problem I had was that my streamlit wasn’t updated.The version I had didn’t support the Multipage feature. I just upgraded it to a later version and it worked. I didn’t change the structure of my project or anything.

2 Likes