问题如下: 解决问题 在cell的最顶端添加两行代码 import plotly.io as pio pio.renderers.default = "notebook_connected" 测试结果正常输出。