Open jasonmbray opened 1 year ago
I have contributed to this repo in the past and agree it was great before Streamlit had built in capabilities for multiple apps. I still think the was this repo did it was better. That said, I don't think the maintainer of this package is doing any more updates.
Thanks for the posts. Yes, I'm not personally focusing on this package because it seems like something that should be offered by Streamlit these days.
But if it's important to anyone, I can accept PRs or hand over the package.
Appreciate the responses. If I figure out a workaround, I'll be happy to share, but it may be beyond me. I don't know if Streamlit will really build in this functionality, since it's kind of what they created their community cloud for. This still seems like the best tool around for what I'm looking to accomplish.
@jasonmbray I am interested in the workaround if you'd be so kind to share!
Unfortunately, I don't have a full working solution. I think there are maybe multiple changes to streamlit that need to be addressed here. The obvious one that I think I fixed is changing main.py line 126 from
(rf"^/{appname}/stream(.*)", ProxyWSHandler, {'proxy_url': url + 'stream'}, appname + 'ws'),
to
(rf"^/{appname}/_stcore/stream(.*)", ProxyWSHandler, {'proxy_url': url + '_stcore/stream'}, appname + 'ws'),
Feel free to start from there if you think you can figure out the remaining problems (noted above in my original post).
Not sure if this repo is still being maintained, but worth a shot. I tested this out with an older version of streamlit, v1.9, and it was working great. When I upgraded streamlit to 1.26, streamlit-launchpad no longer works as expected. From what I could figure out, there was a significant change to the streamlit API around v1.18, which changed the way the websocket communicates. For example, the path /stream has changed to _stcore/stream. See, for example, https://github.com/streamlit/streamlit/issues/6305
I've tried to modify how the proxy handlers are defined, but without much luck. I think I was able to fix the /_stcore/stream issue I mentioned, but there are still a couple others that I can't figure out. The app is running normally on the auto-generated 8501/8502/8503 ports if I visit them directly, but the proxy isn't working and main page is just stuck on "Please wait...".
Seems like it could be an easy thing to fix for someone who understands tornado and proxy handlers better than I do. Is there anyone who has gotten this to work with a recent version of streamlit?
Current errors: