Whenever I try to plot a figure in a Google Colab notebook using matplotlib, a plot is displayed whenever I use %matplotlib inline
but is not displayed when I do %matplotlib ipympl
or %matplotlib widget
. How can I resolve this issue. My goal is to get the plot to be interactive.
Clarification: when I run
%matplotlib --list
I get the following output
Available matplotlib backends: ['tk', 'gtk', 'gtk3', 'wx', 'qt4', 'qt5', 'qt', 'osx', 'nbagg', 'notebook', 'agg', 'inline', 'ipympl', 'widget']
Thanks for your help!