Reliable way to serve streamlit from GitHub pages?

Hi,

I put out a paper a year or so ago with a link to Streamlit app we wrote (essentially, with interactive versions of some of the figures); TLDR, what we did at the time was to put it in GitHub pages in an iframe, and so distributed the GH pages link within the paper. The app was (and is) hosted in Community Cloud.

After a year though of hosting in Community Cloud, though, it’s a drag having to log in and reboot the thing all the time (for better or worse, it doesn’t reboot when you just visit the site and say “wake this app up”, only if I log into the console and wake it up from there - if anyone has pointers there too, would be great!), so trying to think about other options. I spent some time porting the app to serverless streamlit, but serverless streamlit hosted on GH pages doesn’t work on Firefox on Mac (and seems like it hasn’t for a while). In extremely limited testing, I couldn’t just run the streamlit app off a server and embed it in the iframe instead - I just got a blank screen.

Anyone have a good idea to fix one or more of these issues? Otherwise, I suppose I can just host the thing somewhere randomly else and just make the original link a redirect page, but then there’s the hassle of setting up the hosting somewhere else so trying to avoid that. Thanks for any help you may have!

FWIW, I decided to self-host

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.