Python jupyterlabで作成した.ipynbファイルをコマンドラインから実行する方法

nbconvertを使用する

$ jupyter nbconvert hogehoge.ipynb --to python