1import pandas as pd
2pd.get_option('plotting.backend') # default: matplotlib
3df = pd.DataFrame(dict(a=[1,3,2], b=[3,2,1]))
4df.plot(backend='plotly') # backend exception only for this one plot.
5
6pd.set_option('plotting.backend', 'plotly') # or
7pd.options.plotting.backend = "plotly"
8fig = df.plot() # uses backend set in options else default.
9fig.show()
10
11# rendering blank space in classic jupyter notebook?
12fig.show(renderer='notebook') # or
13import plotly.io
14plotly.io.renderes.default='notebook'
15
16Sources:
17https://plotly.com/python/troubleshooting/
18https://plotly.com/python/pandas-backend/