XXX.ipynb is the target notebook file name. The following command will create a XXX.py file.
jupyter nbconvert --to python XXX.ipynb
Recommended Posts