1.在终端运行以下代码
conda install nodejs
jupyter labextension install @jupyter-widgets/jupyterlab-manager
2.在lab的模块导入部分添加"%matplotlib widge",如下
import numpy as np
%matplotlib widget
import matplotlib.pyplot as plt
from lab_utils_uni import plt_intuition, plt_stationary, plt_update_onclick, soup_bowl
plt.style.use('./deeplearning.mplstyle')
参考:解决jupyter notebook中交互式动图无法显示的问题_jupyter notebook图片加载不出来_孤傲寂寞伤的博客-CSDN博客