nikosarcevic / CosmOracle

Home Page:https://share.streamlit.io/nikosarcevic/cosmoracle/main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Streamlit's native multipage support

lonbar opened this issue · comments

Streamlit recently improved their support for multiple pages (see here). I think this is preferable to the hacky implementation we have now.

Multipages removes the ability to put an image at the top of the sidebar. Streamlit seems to be working on a solution: see this thread and the links therein.

Until Streamlit worked out a solution I will use this discussion as a workaround.

Come to think of it; the entire sidebar formatting now needs to be set on each individual page. Aside from the logo this includes the footer. This is a bit unfortunate. Presumably this will be picked up by Streamlit as part of the improvements (see their roadmap), but by their expectation it will take until 2023 before we see the results of that.

I've created a PR in #65.

@nikosarcevic One thing I forgot is that the streamlit server still tries to run from streamlit_app.py. This has to be changed to Introduction.py. I don't seem to be able to change this. Can you do that?

You should be able to do this by logging into streamlit and either changing the file linked to in your workspace, or by deleting the old app and creating a new one.

Creating a new app on the streamlit server (hence linking to Introduction.py) resolved the issue after updating the link in the url of the Github Pages webpage (see commits 1d2e89b and 1d2e89b).