ImportError: cannot import name 'AppLayout' from 'ipywidgets'

时光怂恿深爱的人放手 提交于 2020-04-16 02:23:18

问题


While importing AppLayout I'm getting the following error. I am using Jupyter and have installed ipywidgets. The same error is being raised when importing GridspecLayout. Can anyone help me with this?

All other imports from ipywidgets are working properly, atleast the ones I have imported.

ImportError: cannot import name 'AppLayout' from 'ipywidgets' (C:\Appl\Anaconda3\lib\site-packages\ipywidgets\__init__.py)


回答1:


Check you have the latest version of ipywidgets with help(ipywidgets). 7.5.2 is required for this (https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/changelog.md).



来源:https://stackoverflow.com/questions/56953612/importerror-cannot-import-name-applayout-from-ipywidgets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!