インストールしたい

$ pip3 install plotly
$ poetry add plotly
1import plotly.express as px
2fig = px.bar(x=["a", "b", "c", y=[1, 3, 2])
3fig.write_html("first_figure.html", auto_open=True)

グラフを作成する場合は、plotly.expressを使います。 もっと複雑なことをしたい場合はplotlyが必要です。