I need to export a rotable 3D plot to HTML, just like WriteWebGL does in R, but from Python / matplotlib.
When ran in a Jupyter notebook, you can generate a in interactive plot like this:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
...
ax.scatter3D(xdata, ydata, zdata, c=zdata, cmap='Greens');
(source code for this sample here)
As noted, 3D plots can be rotated by the user. How can I get this interactivity exported to HTML from Python?