📜  将 ipynb 转换为 py python - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:31.595000             🧑  作者: Mango

代码示例2
#Using the text editor
# Go to --> File --> Save As
# Save with the .py extension
  
  #Using the terminal/commmand prompt.
# ipython must be installed. If not installed, install by running the script
pip install ipython

#cd into the folder containing the file (my_file) you want to convert.
ipython nbconvert --to script my_file.ipynb

#the file will be converted into the location of the previous ipynb folder.