0
這裏很奇怪的錯誤,我沒有看到其他地方,我試圖導入Plotly小部件,並不斷提出這個錯誤。導入Plotly Widgets時出錯?
from plotly.widgets import *
IPython.utils.traitlets has moved to a top-level traitlets package.
<IPython.core.display.Javascript object>
Traceback (most recent call last):
File "test.py", line 7, in <module>
from plotly.widgets import *
File "/Users/Clinder/Downloads/task/lib/python2.7/site-packages/plotly/widgets/__init__.py", line 3, in <module>
from plotly.widgets.graph_widget import GraphWidget
File "/Users/Clinder/Downloads/task/lib/python2.7/site-packages/plotly/widgets/graph_widget.py", line 31, in <module>
class GraphWidget(widgets.DOMWidget):
File "/Users/Clinder/Downloads/task/lib/python2.7/site-packages/IPython/utils/shimmodule.py", line 92, in __getattr__
raise AttributeError(key)
AttributeError: DOMWidget
有沒有人有任何想法?我瀏覽過這些文件,但似乎無法找到問題以及重新安裝此軟件包。
你正在使用哪個操作系統?你安裝了jupyter嗎? –
我不認爲我做到了,會盡快回家。謝謝!我在Mac OS上 – k9b