Live data from Hacker News

Streamlit: Turn a Python script into an interactive data analysis tool

towardsdatascience.com

61–67 of 67 posts

Re: Streamlit: Turn a Python script into an interactive data analysis tool

#62
post #31

I agree on the premise: yes eventually every analysis needs to become an app. Also let me add: no, dashboards are not going to cut it, they don't offer enough interactivity. I also love that the app here is a script and hence can be version controlled with git. However, there is no description anywhere of what happens when you need to scale with this. If you have to go from a couple of testers to 100 internal users l…

As far as I can tell the caching is happening server-side. Pretty much all the frontend seems to be doing is poking the back-end to re-run the script (or get results from cache) and then getting back the diff to apply to the UI.

Re: Streamlit: Turn a Python script into an interactive data analysis tool

#64

Earlier quoted context omitted.

(co-founder of Streamlit here) Ian: Thanks for that comment. You're exactly right: Streamlit adapts a React-like model. In fact, the connection goes deeper than the post describes. For example, to make it efficient to run the same script repeatedly, Streamlit does packet-level deduplication. If you generate a lot of data and send it to the browser, only small deltas need be sent to update the UI. We have a list of fu…

FWIW I did some things in this area a while back and ended up needing to stream canvas state back to my Python scripts for image processing. https://gist.github.com/iandanforth/0ed987bfddf8205b8a23 I hope that could be a part of this framework in the future! (If it isn't already)

This is really cool. We've been thinking about these issues to create an image masking widget in Streamlit. Would be interesting to connect when we start down that path. If you're interested, please feel free to connect over discuss.streamlit.io. :-)

Re: Streamlit: Turn a Python script into an interactive data analysis tool

#65
post #52

Earlier quoted context omitted.

You could probably build a Docker image and set the command to run streamlit, then run it like anything else.

Maybe a suggestion for the authors (if not already in the pipeline). Shiny offers a button in RStudio that deploys an app instantly and for free to a domain at shinyapps.io. They then charge for apps that require more data hosting or more concurrent users. Extremely convenient, and pretty profitable I'd imagine.

They've à Teams thing that probably is for this.

Re: Streamlit: Turn a Python script into an interactive data analysis tool

#66
post #53

Earlier quoted context omitted.

Hello! I’m working on Retool ( https://retool.com ), and it does exactly what you said. Our focus is more on building internal applications + dashboards, and we have a HIPAA-compliant version you can deploy on-prem with no telemetry. I’ll try to reach out to you (but if I can’t find your email, mine is david@). Thanks!

Fwiw your links at the bottom to Community, Privacy etc don't work on Chrome or Firefox on my (quite old) tablet. It's like the whole menu is an image rather than an actual menu. At first I was suspicious but looking at the page source the links are there, so you may want to revisit that if it's an issue for others.

Thanks! Just fixed it. Looks like the problem was with one of our animations being too big on mobile, and it covered up the footer. I really appreciate the bug report!

Re: Streamlit: Turn a Python script into an interactive data analysis tool

#67

I gave it a try on Windows and ran into an issue, but found a workaround. I'm using WinPython 3.6 on Windows 7. I did "pip install streamlit" and then "streamlit hello", and had to allow it through the firewall, then got a 404 page. The workaround is very simple, just use the provided http address and add "index.html": http://localhost:8501/index.html This link has more info: https://github.com/streamlit/streamlit/is…

For all those wondering, this bug has been fixed https://github.com/streamlit/streamlit/pull/331
Post reply on HN