This code works fine for me in jupyter notebook. So lets first try running the following in a terminal
pip install "notebook>=5.3" "ipywidgets>=7.5"
Then reopen jupyter notebooks. And try running a new cell with only the following
pip install plotly
then in another separate cell run only
import plotly.graph_objects as go
and then run the rest of the code in its own cell, given you don't get any errors.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…