pyecharts 图片不显示解决方法

1、先下载插件

git clone https://github.com/pyecharts/pyecharts-assets.git

或者直接下载

下载链接

2、安装激活

cd pyechars-assets-master
jupyter nbextension install assets
jupyter nbextension enable assets/main

3、在jupyter中

import pyecharts
from pyecharts.charts import Bar, Line
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.globals import CurrentConfig, NotebookType, OnlineHostType
CurrentConfig.ONLINE_HOST = OnlineHostType.NOTEBOOK_HOST

你可能感兴趣的:(常用资料,随便写点,python)