Based on my understanding from this question %matplotlib inline is used so figures can be shown in Jupyter. But figures are shown in Jupyter without using %matplotlib inline perfectly fine. for example the following code:
import numpy as np import matplotlib.pyplot as plt plt.plot(np.random.randn(50).cumsum()) plt.show() So is %matplotlib inline obsolete or am I misunderstanding it's purpose?
print(plt.get_backend())you'll see it isipykernel.pylab.backend_inlineright from the start. If you switch to some other backend you can use that magic to switch back.