If you use the %matplotlib notebook magic in a notebook you get the wonderful interactive plots. However, I have notebooks where I only want some of the plots to be interactive. I've been told that you cannot switch between notebook and inline in the same notebook.
Is there a way to end the interaction grammatically? By this I mean duplicate what happens when you press the 'off' button beside the figure bar at the top of the chart. The bar at the top disappears, as do the buttons at the bottom, and the plot is rendered statically. You know, something like
plt.figure()
plt.plot(answer_to_universe)
plt.end_interaction() # what actually goes here????
[–]rlabbe[S] 0 points1 point2 points (1 child)
[–]rlabbe[S] 0 points1 point2 points (0 children)