Jupyter | How to rotate 3D graph
To enable interactivity you need to use the notebook
backend of matplotlib. You can do this by running %matplotlib notebook
.
This must be done before you plot anything, e.g.:
%matplotlib notebook
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
fig = ...