在pycharm中运行这条语句没有效果,都找不到图在哪里。 把bar.render_notebook()替换成 bar.render('bar.html') 运行完成后,会在当前代码文件下创建bar.html,打开这个网站就能看到图形了。