Pythonの.ipynbファイルを.pyに変換する

下記コマンドで実行

jupyter nbconvert --to python xxx.ipynb