1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Jupyter Notebookで複数のカーネルを起動して作業するときの注意点(カーネル異常終了)

Posted at

1.この記事の内容

Jupyter Notebookで重い処理を実行するとカーネルが異常終了することがあります.
この要因はメモリ不足であることが多いのですが,複数のカーネルを起動で作業する際に「さっきまで動いていたのに,なぜ?」というように処理を変えていなくても突然異常終了が起きることがあります.

jupyter-kernel-termination.png

2.作業上の注意点

カーネルが起動した状態では,メモリ上にデータが残ります(当たり前).
つまり,複数のカーネルを起動して作業するときに異常終了が発生したときは,他のカーネルを終了(shutdown)すれば,メモリを解放できます.

jupyter-kernel-shutdown.png

3.さいごに

ときどきこれに気づかず,デバッグしてしまう自分への戒めの意も込めて記事に残しました.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?