擅长:python、mysql、java
<p>要启用jupyter matplotlib后端,请使用matplotlib jupyter魔术:</p>
<pre><code>%matplotlib widget
import matplotlib.pyplot as plt
plt.figure()
x = [1,2,3]
y = [4,5,6]
plt.plot(x,y)
</code></pre>
<p>这里有更多信息<a href="https://github.com/matplotlib/jupyter-matplotlib" rel="noreferrer">jupyter-matplotlib on GitHub</a></p>
<p><a href="https://i.stack.imgur.com/Gwgiz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gwgiz.png" alt="Screenshot Jupyter Lab"/></a></p>