QuantConnect / Research

Open sourced research notebooks by the QuantConnect team.
https://www.quantconnect.com
Apache License 2.0
513 stars 169 forks source link

Upgrade Plotly to 4.0.0 version #17

Closed AlinXlin closed 5 years ago

AlinXlin commented 5 years ago

Currently, using the plotly.graph_objs package throws an error AttributeError: 'Figure' object has no attribute 'show' when trying to plot candlestick chart using the following code block.

import plotly.graph_objs as go
fig = go.Figure(data=[go.Candlestick(x=h1['open'].index,
                                    open = h1['open'],
                                    high = h1['high'],
                                    low = h1['low'],
                                    close = h1['close'])])
fig.show()

A possible solution is to upgrade plotly package to 4.0.0 version in RE as suggested on stackoverflow

Martin-Molinero commented 5 years ago

Plotly has been updated in the new research enviroment! image

Tested fig.show() is not throwing and is working now. Closing this issue