没有合适的资源?快使用搜索试试~ 我知道了~
解决pyecharts运行后产生的html文件用浏览器打开空白
46 下载量 106 浏览量
2021-01-20
01:47:53
上传
评论 3
收藏 89KB PDF 举报
温馨提示
根据网站资源引用说明:pyecharts 使用的所有静态资源文件存放于 pyecharts-assets 项目中,默认挂载在 https://assets.pyecharts.org/assets/ 因为默认优先从远程引用资源,这就导致有的时候无法加载js文件,图表显示不出来 解决办法: 下载所需js文件到本地,修改资源引用地址 看网站的介绍,pyecharts 提供了更改全局 HOST 的快捷方式 官方下载 pyecharts-assets 提供了 pyecharts 的静态资源文件。 可通过 localhost-server 或者 notebook-server 启动本地服务。首先将项目
资源详情
资源评论
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/14850300/bg1.jpg)
解决解决pyecharts运行后产生的运行后产生的html文件用浏览器打开空白文件用浏览器打开空白
根据网站资源引用说明:pyecharts 使用的所有静态资源文件存放于 pyecharts-assets 项目中,默认挂载
在 https://assets.pyecharts.org/assets/
因为默认优先从远程引用资源,这就导致有的时候无法加载js文件,图表显示不出来
解决办法:
下载所需js文件到本地,修改资源引用地址
看网站的介绍,pyecharts 提供了更改全局 HOST 的快捷方式
官方下载
pyecharts-assets 提供了 pyecharts 的静态资源文件。
可通过 localhost-server 或者 notebook-server 启动本地服务。首先将项目下载到本地
# 通过 git clone
$ git clone https://github.com/pyecharts/pyecharts-assets.git
# 或者直接下载压缩包
$ wget https://github.com/pyecharts/pyecharts-assets/archive/master.zip
Localhost-Server
启动服务器
$ cd pyecharts-assets
$ python -m http.server
设置 host
# 只需要在顶部声明 CurrentConfig.ONLINE_HOST 即可
from pyecharts.globals import CurrentConfig
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![h](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
weixin_38654382
- 粉丝: 1
- 资源: 932
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0