jupyter notebook 中使用Pyecharts后render_notebook()方法不能绘图解决方案

问题描述:在jupyter notebook 中安装Pyecharts最新版1.9.1之后,发现使用render_notebook()方法,图形无法正常显示。
解决方案:
1,安装pyecharts-assets
通过Gitcode安装pyecharts-assets
按照说明,启动cmd命令行,依次输入下列指令,将库克隆到本地。

# 通过 git clone
git clone https://github.com/pyecharts/pyecharts-assets.git
# 进入克隆文件夹
cd pyecharts-assets
# 安装插件
jupyter nbextension install assets
# 激活插件
jupyter nbextension enable assets/main

2,安装jupyter-echarts-pypkg
在Gitcode上安装jupyter-echarts-pypkg
按照说明,启动cmd命令行,依次输入下列指令,将库克隆到本地。

# 通过 git clone
git clone https://github.com/pyecharts/jupyter-echarts-pypkg.git
# 进入克隆文件夹
cd jupyter-echarts-pypkg
# 安装插件
python setup.py install

3,安装jupyter-echarts
在Gitcode上安装jupyter-echarts
按照说明,启动cmd命令行,依次输入下列指令,将库克隆到本地。

# 通过 git clone
git clone https://gitcode.com/pyecharts/jupyter-echarts.git
# 进入克隆文件夹
cd jupyter-echarts
# 安装插件
jupyter nbextension install echarts
# 激活插件
jupyter nbextension enable echarts/main

完成后重启Jupyter notebook,图形可以正常显示

  • 19
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

清弦墨客

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值