在使用jupyter notebook中使用pyecharts绘制可视化图表的时候,发现图表不能渲染到页面中,生成的html是没问题的,本文主要解决在jupyter notebook中不能渲染这个问题。 1、原因分析 2、解决办法 如果是使用的虚拟环境,需要下你提前激活虚拟环境,再进行下列操作。 因为需要克隆github上的项目,需要提前安装Git客户端。 git clone https://github.com/pyecharts/pyecharts-assets.git cd pyecharts-assetspip install jupyter_contrib_nbextensions