Live data from Hacker News

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

towardsdatascience.com

31–40 of 67 posts

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

#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 like it very often happens in analytics, how does this react?

Also caching is a great idea but I would expect a lot of this logic to be managed on the server side, or I am missing something and ML is different here? I would expect to pipe as little data as possible back to the application because I want the user to wait max 3-4 seconds for the app to load at start.

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

#34
post #32

This is pretty neat! As this is an offshoot of some autonomous car project, what would the support be for 3D data. If I wanted to see some LIDAR or Pointcloud data in browser? Esp if its a tf-output.

Check out deck.gl, which is packaged with streamlit [0]. There is a PointCloudLayer [1] and deck can read gltf.

Also take a look at Streetscape.gl [2] which is designed for visualizing AV data

Disclaimer: I work on Uber's data vis team but not on AVs.

[0] https://streamlit.io/docs/api.html#streamlit.deck_gl_chart [1] https://deck.gl/#/documentation/deckgl-api-reference/layers/... [2] https://avs.auto/

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

#35
The demo is broken on Macos: "Streamlit failed to hash an object of type .,

More information: to prevent unexpected behavior, Streamlit tries to detect mutations in cached objects so it can alert the user if needed. However, something went wrong while performing this check.

Please file a bug... "

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

#38
This looks really promising! I recently wanted to make an interactive GUI to control the inputs to a GAN in order to generate images and visualize how different inputs affect certain properties of the output images.

I ended up converting my Python models to TensorFlow.js and creating an ad-hoc Vue.js app [0], but Streamlit could have been very beneficial here, especially if you can just put nginx in front of it and serve it to the masses.

[0] https://thispicturedoesnotexist.com

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

#39

This is awesome! Is there a way to generate a standalone binary, e.g. as an electron app? I'm looking for ways to ship small custom python/pandas data analysis apps including data to non-technical users - but as a local application.

You may want to consider building Streamlit into a standalone binary using Static-X or pex. I use pex for standalone binary distribution of a fairly popular python app [1].

[1] https://github.com/johnj/salt-pex

Post reply on HN