Folium地图未显示在github上传的jupyter笔记本上 [英] Folium maps not showing up on jupyter notebook uploaded on github

查看:568
本文介绍了Folium地图未显示在github上传的jupyter笔记本上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当从anaconda提示符下启动jupyter时,通过增加数据限制,我已经成功地在jupyter笔记本上绘制了叶片图:

I have successfully rendered folium maps on my jupyter notebook by increasing the data limit when launching jupyter from anaconda prompt like this:

"jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10"

但是,当我将笔记本上载到Github而不是我处理过的地图时,我得到了一个空白窗口.

However, when I have uploaded the notebook to Github, rather than the map I had processed, I got a blank window.

如何渲染这些地图?通过github启动笔记本时,是否可以增加笔记本上的data_rate_limit?

How can I render these maps? Is it possible to increase the data_rate_limit on the notebook when it is being launched through github?

推荐答案

如果Folium映射中有任何Javascript,它将不会在GitHub上呈现.出于安全原因,GitHub在渲染笔记本时不会执行任何JavaScript.

If there's any Javascript in Folium maps, it will not render on GitHub. For security reasons, GitHub does not execute any javascript while rendering notebooks.

来自GitHub 文档

笔记本的交互功能,例如自定义JavaScript 地块,将无法在GitHub上的存储库中工作

The interactive features of the notebook, such as custom JavaScript plots, will not work in your repository on GitHub

这篇关于Folium地图未显示在github上传的jupyter笔记本上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆