# 50MB dataset limitation when using Plotly.py

**URL:** <https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464>\
**Category:** Using Streamlit\
**Tags:** plotly\
**Created:** [February 3, 2021, 1:47pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464 "2021-02-03T13:47:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [February 3, 2021, 1:47pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/1 "2021-02-03T13:47:59Z")

</div>

Hi there,

I’m using Plotly.py to show figures in my Streamlit app with big datasets. And now I get a notification of dataset oversizing, bigger than 50.0MB, is there anyway to solve this?

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [February 4, 2021, 8:01am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/2 "2021-02-04T08:01:44Z")

</div>

the exact error message is “RuntimeError: Data of size 83.4MB exceeds write limit of 50.0MB”

---

<div class="post-metadata">

**Author:** ![GokulNC](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/gokulnc/32/2806_2.png) [@GokulNC](https://discuss.streamlit.io/u/GokulNC)\
**Post date:** [February 9, 2021, 2:13pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/3 "2021-02-09T14:13:26Z")

</div>

Check this:

> <https://github.com/streamlit/streamlit/issues/1983>
>
> Currently, after doing all filters, the csv file that gets generated is of ~82 MB and i get this error while...

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [February 9, 2021, 5:59pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/4 "2021-02-09T17:59:33Z")

</div>

Thanks for the reply! I found this github link before I posted this issue, but it didn’t solve my problem.

But later my friends and I found this error message in ~/site-packages/streamlit/server/server\_util.py, and changed the parameter MESSAGE\_LIMIT\_SIZE to 200\*1e6, making the write limit now 200 MB

---

<div class="post-metadata">

**Author:** ![Manal\_Benchrif](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/manal_benchrif/32/10231_2.png) [@Manal\_Benchrif](https://discuss.streamlit.io/u/Manal_Benchrif)\
**Post date:** [September 22, 2021, 10:02pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/5 "2021-09-22T22:02:07Z")

</div>

@imClumsyPanda I did the same, but it still doesn’t work for me.  
Please any help

 ![WhatsApp Image 2021-09-22 at 23.01.27](https://global.discourse-cdn.com/streamlit/original/2X/6/69cf4515574bf7640abf0ef101c70fc174bfa35a.jpeg)

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [September 22, 2021, 11:05pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/6 "2021-09-22T23:05:46Z")

</div>

Hi,

Have you tried to re-do streamlit run again after the file changed and saved?

---

<div class="post-metadata">

**Author:** ![Manal\_Benchrif](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/manal_benchrif/32/10231_2.png) [@Manal\_Benchrif](https://discuss.streamlit.io/u/Manal_Benchrif)\
**Post date:** [September 22, 2021, 11:52pm UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/7 "2021-09-22T23:52:27Z")

</div>

Yes, i rerun the app again but still doesn’t work.  
Please, i have another question is their in posibility to run a file with GB size.

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [September 23, 2021, 12:04am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/8 "2021-09-23T00:04:36Z")

</div>

If you mean upload file with GB size, you can try “streamlit run xx.py —server.maxUploadSize=1028”

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [September 23, 2021, 12:05am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/9 "2021-09-23T00:05:12Z")

</div>

Do you have multiple python environments? That might cause the modification doesn’t work well

---

<div class="post-metadata">

**Author:** ![Manal\_Benchrif](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/manal_benchrif/32/10231_2.png) [@Manal\_Benchrif](https://discuss.streamlit.io/u/Manal_Benchrif)\
**Post date:** [September 23, 2021, 12:24am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/10 "2021-09-23T00:24:35Z")

</div>

No i have only one envirement

---

<div class="post-metadata">

**Author:** ![imClumsyPanda](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/imclumsypanda/32/3427_2.png) [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Post date:** [September 23, 2021, 12:57am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/11 "2021-09-23T00:57:08Z")

</div>

You can use “where streamlit” command to check if the streamlit.exe is in the same path with the server\_util

---

<div class="post-metadata">

**Author:** ![Manal\_Benchrif](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/manal_benchrif/32/10231_2.png) [@Manal\_Benchrif](https://discuss.streamlit.io/u/Manal_Benchrif)\
**Post date:** [October 1, 2021, 9:29am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/12 "2021-10-01T09:29:36Z")

</div>

Thank you for your response. Actually when i restart my machine it works.  
And i can display data up to 200 Mo

---

<div class="post-metadata">

**Author:** ![jrieke](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jrieke/32/47685_2.png) [@jrieke](https://discuss.streamlit.io/u/jrieke)\
**Post date:** [January 25, 2022, 1:03am UTC](https://discuss.streamlit.io/t/50mb-dataset-limitation-when-using-plotly-py/9464/13 "2022-01-25T01:03:12Z")

</div>

We recently introduced some changes with 1.4.0 to fix this problem. The default message size limit is now 200 MB (instead of 50 MB) and you can increase it even further with the config option `server.maxMessageSize`. More about config options [here](https://docs.streamlit.io/library/advanced-features/configuration). Let me know if this works or not!
