Sorry for the title but idk how you call that part after the domain name. This is the only piece of code I have related to pages:
from st_pages import show_pages
from st_pages import Page as StPage
show_pages(
[
StPage(
path = f"{self.data_handler.root_path}/Home.py",
name = "Home",
icon = "π " # π πͺ π
),
StPage(
path = f"{self.data_handler.root_path}/pages/backtest_results.py",
name = "Backtest Results",
icon = "π" # π πΉ π
),
StPage(
path = f"{self.data_handler.root_path}/pages/top_combination.py",
name = "Top Combination",
icon = "π" # π π₯ π
),
StPage(
path = f"{self.data_handler.root_path}/pages/optimization_analysis.py",
name = "Optimization Analysis",
icon = "π" # π π¬ π
),
StPage(
path = f"{self.data_handler.root_path}/pages/trade_analysis.py",
name = "Trade Analysis",
icon = "π°" # πΈ π° π΅
)
]
)