python - 无法导入 plotly.figure_factory

标签 python python-3.x plotly

我无法导入 plotly.figure_factory

我使用的代码基于this example

该模块由以下代码片段导入:

import plotly.plotly as py
import plotly.figure_factory as FF

我在 plotly 的网站上找不到任何关于 figure_factory 的文档。

有什么想法吗?

最佳答案

Plotly 的文档有时会有点不一致,并且会遗漏一些对库本身的更新。

如果您将第二行替换为

from plotly.tools import FigureFactory as FF

您的代码应按预期工作。

关于python - 无法导入 plotly.figure_factory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42444761/

相关文章:

javascript - Angular 2 应用程序中的 plotly 点击事件

python 扭曲 : how do use different resource hierarchies for localhost connections?

python - 使用 easy_install 安装 mechanize

python - ImportError : Missing required dependencies ['numpy' ]. 没有任何帮助

python-3.x - 从RabbitMQ获取消息而不消耗

python - Plotly 图表的下拉菜单

python - 我可以计算 p 值并使用 plotly 添加星号吗?

python - 在 Windows 上编译 scikit-image 来运行测试

python - numpy 数组的 scipy.ndimage.interpolation 移位给出错误结果 - bug?

python - 使用 etree 从所有元素中删除所有数据属性