2
2

More than 1 year has passed since last update.

.ipynbファイル(jupyter notebook)が重くて開けない

Posted at

問題 

.ipynbファイルが重くて開けなくなった。(250MB)

対処法

外部からセルの出力量を減らし、メモリ使用を減らすことで開けるようになりました。

pip install nbclean
input_file = "./hoge.ipynb"
output_file = "./hoge_out.ipynb"

cleaner = nbclean.clean.NotebookCleaner(input_file))
cleaner.clear("output")
cleaner.save(output_file)

上記を.pyファイルで作成し、python hoge.py で実行すると、出力がなくなったoutputファイルが作成され、開けるようになりました。

2
2
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
2
2