The matplotlib figure suddenly doesn't display in vscode's jupyter notebook environment, even though I used:
%matplotlib inline
When I plot a figure, e.g.:
data = np.random.randn(1000, 2)
fig, ax = plt.subplots()
ax.scatter(data[:, 0], data[:, 1])
plt.show()
only return followings:
<Figure size 432x288 with 1 Axes>
Here is the versions:
- matploltlib: 3.5.1
- numpy: 1.22.3
- ipython : 8.1.1
- vscode: 1.73.1
- vscode jupyter extension: 2022.9.1303220346
I tried to re-install my vscode and it works, but several days later it happens again.
So if any one knows how to solve it? Thanks!