1.版本问题导致的can’t import Bar from pyecharts
改成:
from pyecharts.charts import Bar
2.bar.render_notebook()在jupyter notebook中不能显示
(1)from pyecharts.globals import CurrentConfig, NotebookType
(2)CurrentConfig.NOTEBOOK_TYPE = NotebookType.JUPYTER_NOTEBOOK
(3)CurrentConfig.ONLINE_HOST
(4)bar.render_notebook()
3.bar.render(“render.html”)不能自动在浏览器中显示
import os
os.system(“render.html”)