原因分析:由于国外的js源无法访问而无法出图,改为本地js源解决问题
1.从gitee下载js源文件
git clone https://gitee.com/extraline/pyecharts-assets.git
2.拷贝assets目录到jupyter 外部源地址 如/notebook/assets
3.修改jupyter notebook的配置文件~/.jupyter/jupyter_notebook_config.py的外部源地址
c.NotebookApp.extra_static_paths = ['/notebook/assets/']
4.验证通过juypter notebook能访问到js,不能访问检查jupyter配置
127.0.0.1:8888/static/echarts.min.js
5.修改ipynb文件,在导入pyechart前修改配置本地源
from pyecharts.globals import CurrentConfig, NotebookType
CurrentConfig.ONLINE_HOST = "static/"