In an iPython notebook, you can enable interactive matplotlib plots simply by calling
%matplotlib notebook
However, on colab this seems to result in plots not being made at all. If you use
%matplotlib inline
Then the plots appear, but they are not interactive (e.g. you cannot rotate 3D plots).
@namurphy for the SULI 2023 summer school notebook on charge particle tracing, this is a significant downside to using colab.