1、lab实验课程 C1_W1_Lab04_Cost_function_Soln中,执行到
plt_intuition(x_train,y_train)语句时报错:
Failed to load model class ‘VBoxModel‘ from module ‘@jupyter-widgets/controls Error: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however, 2.0.0 is…
解决方法:
尝试了方法一、更新库:
pip install --upgrade jupyterlab jupyterlab-widgets
方法二、卸载重装,重启JupyterLab服务:
pip uninstall jupyterlab_widgets
pip install jupyterlab_widgets==1.5.0(没有找到该版本,没安装上...重新装了最新版本)
jupyter labextension rebuild
jupyter lab
均不管用,仍然有此报错
方法三、pip安装插件
pip install -U jupyterlab ipywidgets jupyterlab-widgets
此方法有效!!!开心~