相关疑难解决方法(0)

Puply icreate_animations在Jupyter Notebook上脱机

我试图在Jupyter Notebook上复制这个绘图教程,其数据集与示例中给出的数据集相匹配,我只需要更改一列的名称.这里的问题是离线命令

py.icreate_animations(figure)
Run Code Online (Sandbox Code Playgroud)

在离线笔记本模式下成为

icreate_animations(figure)
Run Code Online (Sandbox Code Playgroud)

不被承认.此外,如果我只是尝试用于静态图的iplot(figure)命令,则会引发一个很长的错误:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-b81a66612f63> in <module>()
     38 figure['layout']['sliders'] = [sliders_dict]
     39 
---> 40 iplot(figure)

//anaconda/lib/python2.7/site-packages/plotly/offline/offline.pyc in iplot(figure_or_data, show_link, link_text, validate, image, filename, image_width, image_height, config)
    330     config.setdefault('linkText', link_text)
    331 
--> 332     figure = tools.return_figure_from_figure_or_data(figure_or_data, validate)
    333 
    334     # Though it can add quite a bit to the display-bundle size, we include

//anaconda/lib/python2.7/site-packages/plotly/tools.pyc in return_figure_from_figure_or_data(figure_or_data, validate_figure)
   1383 
   1384         try:
-> 1385             graph_objs.Figure(figure)
   1386         except exceptions.PlotlyError as err:
   1387             raise …
Run Code Online (Sandbox Code Playgroud)

python python-2.7 plotly jupyter-notebook

5
推荐指数
1
解决办法
1966
查看次数

标签 统计

jupyter-notebook ×1

plotly ×1

python ×1

python-2.7 ×1