问题
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