Jupyter Labのノートブックに大量に出力してしまったせいで開けなくなった場合、以下の方法でセルのアウトプットを消去できる。

$ jupyter nbconvert --to notebook --ClearOutputPreprocessor.enabled=True --inplace [path to .ipynb]