Live data from Hacker News

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

towardsdatascience.com

51–60 of 67 posts

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

#52
post #40

This looks excellent. I'm an avid RShiny user and can't wait to try this and Dash. Is there an example for how to host (e.g. on aws or google cloud) and make an app available online?

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.

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

#53
post #45

Apart from ML, this could be very useful for creating dashboards in the healthcare setting. Dashboards are surprisingly had to make, deploy, and maintain in the hospital. I've created many one-off webapps for different research groups and have been dreaming of a tool that consolidates all the front end work allowing me to concentrate how to process the data. Streamlit looks incredible for this!

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!

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

#54

This is a declarative programming model similar to React. I'm surprised the analogy isn't drawn in the article. "Streamlit assigns each variable an up-to-date value given widget states." This line is interesting because it implies distributed state in each component (widget). Alternatively this could be framed in centralized state manager terminology. "Each widget is provided with the current state of the application…

(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)

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

#56
post #11

I'm impressed. Installing on my Mac to test this out was very straight-forward: cd /tmp mkdir streamlit cd streamlit pipenv shell pip install streamlit Then I could play with the built-in demos by running: streamlit hello So that was a slick intro - next step was I followed this tutorial: https://streamlit.io/docs/tutorial/create_a_data_explorer_ap... And a few minutes later I had an interactive notebook-style interf…

How would you compare this with the experience you get with Jupiter Notebook?

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

#57
post #40

This looks excellent. I'm an avid RShiny user and can't wait to try this and Dash. Is there an example for how to host (e.g. on aws or google cloud) and make an app available online?

Hey I was wondering the same and tried doing it my own way and managed to host it using EC2 instance. You can read about it here: https://medium.com/@pokepim/deploying-streamlit-app-to-ec2-i...

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

#58
post #50

Whats the easiest way to make public on the internet a small streamlit powered analysis? I saw there is a Streamlit for teams in the future (sounds expensive) and on the forums they recommended to make a docker container and host it anywhere, which is doable, but I'd love a way to be able to just put something up on the internet for a short period of time, sort of how now.sh[1] works. [1]: https://zeit.co/home

For now I managed to host it for short while using EC2 and continous script deployment which I described in detail here: https://medium.com/@pokepim/deploying-streamlit-app-to-ec2-i...

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

#59
Looks great! Thanks for the hard work Streamlit team. Our team started using Dash recently for an ML project and quickly got lost in callback hell and switched back to a notebook. This approach is so pythonic and elegant. Looks like it would handle our use case with much less code and callback related head aches. I’m excited to share it with our team!

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

#60
post #53
post #45

Apart from ML, this could be very useful for creating dashboards in the healthcare setting. Dashboards are surprisingly had to make, deploy, and maintain in the hospital. I've created many one-off webapps for different research groups and have been dreaming of a tool that consolidates all the front end work allowing me to concentrate how to process the data. Streamlit looks incredible for this!

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.

Post reply on HN