2019 resolved pyecharts 0.5x version shown in jupyter notebook (anaconda for python2) blank question (answer old online outdated)

After the python2 version of jupyter notebook and related pyecharts 0.5.x version installation, testing a simple diagram shows, discovery fails, shows only a blank page

 

Baidu next, the statement said that the increase of js in init_xxx () in, but I read the code, the relevant part of the already added by default, that when solved by the method of the invention is certainly older version.

 

Looked at the console, the error is 404 not found of nbextensions / echarts / echarts.min.js, presumably unable to find the specified location service resource files in web, in just a search in anaconda is found to exist echarts.min.js , but the location is lib / python2.7 / site-packages / jupyter_echarts_pypkg / resources / echarts / echarts.min.js, but there are also nbextensions directory, but the directory does not echarts related information

 

Made a simple and crude attempt to echarts.min.js a shell destroyed the next nbextensions / echarts, reproduction is good according to the original path, and then try to render echarts chart, this time to display properly.

 

So it should be somewhere in the absence of a specified directory is mapped to the action under nbextensions, lead can not be displayed after installation.

Guess you like

Origin www.cnblogs.com/yeyong/p/12018217.html