是否可以在 Google Colaboratory 中使用%matplotlib notebook
和 MatplotlibFuncAnimations
进行动画可视化?
当我尝试时,我得到
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/matplotlib/cbook/__init__.py", line 388, in process
proxy(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/cbook/__init__.py", line 228, in __call__
return mtd(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/matplotlib/animation.py", line 1560, in _stop
self.event_source.remove_callback(self._loop_delay)
AttributeError: 'NoneType' object has no attribute 'remove_callback'
我的笔记本在 macOS 上使用 Anaconda 的本地 Jupyter 安装上运行良好。