在 Jupyter Notebook 中使用 plotly 抛出异常创建图形

阿拜

当我使用 plotly 包在 jupyter notebook 中创建地图时,我可以毫无问题地这样做。但是,当我使用相同的代码并将其上传到 Kaggle 内核时,下面是我得到的错误。

NewConnectionError:: 建立新连接失败:[Errno -3] 名称解析暂时失败

在处理上述异常的过程中,又发生了一个异常:

MaxRetryError: HTTPSConnectionPool(host='plot.ly', port=443): Max retries exceeded with url: /clientresp (Caused by NewConnectionError(': Failed to build a new connection: [Errno -3] 名称解析临时失败' ,))

它抛出错误的行是:

py.iplot(fig,validate=False,filename='choropleth-map')

瑞秋·塔特曼

您收到此错误是因为内核当前无法访问 Internet。您仍然可以生成离线 plotly plots

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何使用 Python 从 Jupyter Notebook 将 Plotly 生成的交互式图形导出为 HTML 文件?

在Jupyter Notebook中将ipywidgets与plotly一起使用

在Jupyter iPython Notebook中使用matplotlib绘制图形

在Jupyter Notebook中使用Ctypes

在Jupyter Notebook中使用Tkinter

如何在 Jupyter Notebook 中安装 Plotly

Jupyter 中使用 Plotly 的热图

jupyter notebook 离线绘图不推荐使用 plotly.grid_objs 模块

在Ipython中使用Pylint(Jupyter-Notebook)

在Jupyter Notebook单元中使用单击库

无法在Jupyter Notebook中使用Pyodbc模块

在Jupyter Notebook中使用conda环境

在 jupyter notebook 中使用未上传的文件

如何在 vscode jupyter notebook 中使用创建的 python 虚拟环境

如何在Pandas和Jupyter Notebook中使用可单击的超链接创建表

在 Jupyter Notebook 中使用 ipywidgets 和 asyncio 以交互方式创建列表

在Jupyter Notebook ModuleNotFoundError中:没有名为'plotly'的模块

使用Pandas创建虚拟变量时Jupyter Notebook内核死亡

如何使用 jupyter notebook 在 Pandas 数据框中创建列表

基于Jupyter Notebook创建项目

在Jupyter Notebook中使用cython进行行轮廓分析

在 Jupyter notebook 中使用 main 方法调用 Python 文件

在Jupyter Notebook中使用watson_developer_cloud时出错

在 jupyter notebook 中使用 python 循环播放声音

如何在Jupyter Notebook中使用破折号?

如何在Visual Studio 2017中使用Jupyter Notebook?

在Jupyter Notebook中使用Match替代Find and Replace Utility

在Jupyter Notebook中使用Python虚拟环境

我无法在硒Jupyter Notebook中使用click()函数