# Deprecation warning

**URL:** <https://community.plotly.com/t/deprecation-warning/17529>\
**Category:** 📊 Plotly Python\
**Created:** [January 1, 2019, 9:29pm UTC](https://community.plotly.com/t/deprecation-warning/17529 "2019-01-01T21:29:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![noureddiuno](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@noureddiuno](https://community.plotly.com/u/noureddiuno)\
**Post date:** [January 1, 2019, 9:29pm UTC](https://community.plotly.com/t/deprecation-warning/17529/1 "2019-01-01T21:29:13Z")

</div>

hi everybody,  
I try to plot data in plotly via streaming using python [(script)](https://www.hastebin.com/igamiqumaq.py), but the folowing warnning [(clic here)](https://www.hastebin.com/lequdunise.css)cause execemtion and stop data sending.  
Please what can i do to avoid this DepreacationWarning ??

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [January 2, 2019, 12:45pm UTC](https://community.plotly.com/t/deprecation-warning/17529/2 "2019-01-02T12:45:25Z")

</div>

Hi @noureddiuno,

The reason you’re getting the deprecation warning is the use of the `Data`, `Stream`, `YAxis`, and `Marker` classes from:

```python
from plotly.graph_objs import Scatter, Layout, Figure, Data, Stream, YAxis, Marker

```

These should be replaced by the classes suggested by the deprecation warnings.  
-Jon

---

<div class="post-metadata">

**Author:** ![noureddiuno](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@noureddiuno](https://community.plotly.com/u/noureddiuno)\
**Post date:** [January 8, 2019, 4:31pm UTC](https://community.plotly.com/t/deprecation-warning/17529/3 "2019-01-08T16:31:59Z")

</div>

Thank you @jmmease for your fast reponse,

I made some changes in libs import, it soved part of problem but “from plotly.graph\_objs import Data” still shows warnning !!

I don’t inderstand why my programs ran very well before 25 october 2018 (without any of previous warnnigs) ?

yours sincerely.

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [January 9, 2019, 10:36am UTC](https://community.plotly.com/t/deprecation-warning/17529/4 "2019-01-09T10:36:54Z")

</div>

Hi @noureddiuno,

The deprecation warnings starting in version 3.0. The `plotly.graph_objs.Data` class is no longer needed. It should be replaced with a simple `list` or `tuple`.

So change

```python
data = Data([temp11])

```

to

```python

data = [temp11]

```

Hope that helps,  
-Jon
