Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

Plotly python package is broken in current conda version in Azure ML #44

Description

@efraintorlo

Hi guys,

Firstly, I have to say that your Azure ML platform is just awesome and your decision to include Jupyter support is quite useful, thanks a lot for that!

Next, I wish to highlight a small issue that, in my humble opinion, is related with the Anaconda version that runs in the docker instances. It happens that when plotly package is imported in a Jupyter notebook the next error is obtained:

importplotly---------------------------------------------------------------------------IndexErrorTraceback (mostrecentcalllast)
<ipython-input-3-c27a4132ad2e>in<module>()
---->1importplotly/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/__init__.pyin<module>()
29from __future__ importabsolute_import30--->31fromplotlyimport (plotly, dashboard_objs, graph_objs, grid_objs, tools,
32utils, session, offline, colors)
33fromplotly.versionimport__version__/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/plotly/__init__.pyin<module>()
89 """
--->10from . plotlyimport (
11sign_in,
12update_plot_options,
/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/plotly/plotly.pyin<module>()
27fromrequests.compatimportjsonas_json28--->29fromplotlyimportexceptions, files, session, tools, utils30fromplotly.apiimportv1, v231fromplotly.plotlyimportchunked_requests/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/tools.pyin<module>()
5859ipython_core_display=optional_imports.get_module('IPython.core.display')
--->60matplotlylib=optional_imports.get_module('plotly.matplotlylib')
61sage_salvus=optional_imports.get_module('sage_salvus')
62/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/optional_imports.pyinget_module(name)
21ifnamenotin_not_importable:
22try:
--->23returnimport_module(name)
24exceptImportError:
25_not_importable.add(name)
/home/nbuser/anaconda3_23/lib/python3.4/importlib/__init__.pyinimport_module(name, package)
107break108level+=1-->109return_bootstrap._gcd_import(name[level:], package, level)
110111/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/matplotlylib/__init__.pyin<module>()
12from __future__ importabsolute_import13--->14fromplotly.matplotlylib.rendererimportPlotlyRenderer15fromplotly.matplotlylib.mplexporterimportExporter/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/matplotlylib/renderer.pyin<module>()
11importwarnings12--->13importplotly.graph_objsasgo14fromplotly.matplotlylib.mplexporterimportRenderer15fromplotly.matplotlylibimportmpltools/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/graph_objs/__init__.pyin<module>()
12from __future__ importabsolute_import13--->14fromplotly.graph_objs.graph_objsimport*# this is protected with __all__/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/graph_objs/graph_objs.pyin<module>()
32importsix33--->34fromplotlyimportexceptions, graph_reference35fromplotly.graph_objsimportgraph_objs_tools36/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/graph_reference.pyin<module>()
230231-->232 @utils.memoize()
233def_get_valid_attributes(object_name, parent_object_names):
234attributes=get_attributes_dicts(object_name, parent_object_names)
/home/nbuser/anaconda3_23/lib/python3.4/site-packages/plotly/utils.pyinmemoize(maxsize)
490returnresult491-->492returndecorator(_memoize)
/home/nbuser/anaconda3_23/lib/python3.4/site-packages/decorator.pyindecorator(caller, func)
226callerfunc=caller227doc=caller.__doc__-->228fun=getfullargspec(callerfunc).args[0] # first arg229else: # assume caller is an object with a __call__ method230name=caller.__class__.__name__.lower()
IndexError: listindexoutofrange

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions