Jump to the .ipython file directory: execute the following command
jupyter nbconvert --to script XXX.ipynb
Note: You can use jupyter nbconvert -h to view the meaning of relevant command parameters. Use --to to specify the target format
Use jupyter -h to view jupyter related command parameters