ipython / ipython/ipykernel

Jupyter-Lab: Kernel is died and restarting while show matplotlib plots

オープン
#777 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
734
フォーク
412
平均マージ
1日 5時間
マージ済み PR(30日)
8

説明

I'm trying to plot some cropped images of my data with matplotlib, but it always showing this message after running the code cell:
![image](https://user-images.githubusercontent.com/36745656/134806397-23a8f082-199d-472d-87fb-f7273ec0ef6e.png)

**the code snippest;**
```
import matplotlib.pyplot as plt
import numpy as np
#import helper

%matplotlib inline

def imshow(img):
npimg = img.numpy()
plt.imshow(np.transpose(npimg, (1, 2, 0)))

fig = plt.figure(figsize=(20, 4))
plot_size=20
for idx in np.arange(plot_size):
ax = fig.add_subplot(2, plot_size/2, idx+1, xticks=[], yticks=[])
imshow(images[idx])
```

Environment:
Jupyter-lab
Python 3.7
Conda environment: Base
matplotlib version: 3.3.4
OS: Windows 10 pro

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。