Dav
February 23, 2023, 10:39am
1
Hello,
Thank you for the great tool!
I build a digital cv with streamlit. In it, I would like to insert links to redirect to my different streamlit projects.
My resume is the app.py, and the projects are in a projects folder.
|- projects
| |- project1.py
| |- project2.py
|
|- app.py
When I try to href to the different project, I get a blank page
PROJECTS = {
â MOH- Detectorâ: âprojects/project1.pyâ,
â MOH- Detectorâ: âprojects/project2.pyâ,
}
for project, link in PROJECTS.items():
st.write(f"{project} ")
Could you help me please?
Than you!
The simplest thing is for you to put you other apps in a pages
folder instead of projects
so Streamlit can recognize them as other pages in your app.
Streamlit doesnât operate like a simple webhost; for the user, they canât navigate directly to the things in your working directory.
You can customize how the navigation menu looks a little bit with st-pages
:
I love multipage apps, but donât really prefer having to move/rename files in order to change their name, order or icon in the sidebar. I especially donât like adding emojis to filenames.
Iâve been doing a number of experiments about different ways multipage apps could work differently, and have combined some of those into a new package st-pages.
[image]
Example usage:
from st_pages import Page, show_pages, add_page_title
# Optional -- adds the title and icon to the current page
add_page_tâŠ
2 Likes
Dav
February 24, 2023, 11:18am
3
Thank you very much for your answer.
Itâs seems the only way.
I didnât want navigation menu, because itâs a bit messy to display it in a resume. May be with some customizing it will be better
Again Thank You!
Best,
David
Goyo
February 24, 2023, 11:44am
4
Another way would be deploying each project as an independent application.
Dav
February 25, 2023, 5:14pm
5
It could be a solution if I had only one project but for my resume + 3 projects, itâs mean take 4 different domains.
Goyo
February 25, 2023, 11:01pm
6
Streamlit Cloud gives you that for free but I donât know what your options are with other providers.
Dav
February 26, 2023, 7:42am
7
I didnât know that.
Iâll check Thank you! It could be a great alternative