Firstly, a BIG THANKS for making this wonderful tool. I have managed to deliver 3 prototypes within a month of learning how to use this!
On a recent prototype, I am plotting the following -
A heatmap (using plotly.graph_objects.heamap)
A line chart using px.line()
A map using px.scatter_mapbox()
I found that the tool and the webpage crashes on Chrome when the size of the dataframe is around 4MB. I derived this size of the dataframe by using df.memory_usage(deep=True).sum()
The above dataframe is used for making the heatmap. Is there a limit that I should be aware of or are there other methods of plotting this?
Hey @a.iyer - welcome to Streamlit, and thanks for the report!
There isnβt any Streamlit-enforced limit on dataframe sizes, but the various plotting tools that Streamlit uses have their own (implicit) performance limits, and I imagine youβre hitting that in plotly.
Depending on your particular app, this may or may not be trivial, but Altair, matplotlib, and deck.gl are other plotting libraries that are supported by Streamlit, and they may give better performance for your chart. (The deck.gl playground, for example, has a geographic heatmap that pulls in ~3mb data and renders it quickly with no problem.)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking βAccept allβ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.