解决方法:
# 方式一
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
# 方式二
conda install -c conda-forge ipywidgets
方法一试了不行,方法二亲测有效(方法二得提前关掉相关python代码)。
prompt截图:
reference:
https://blog.csdn.net/sinat_26917383/article/details/84345407