📜  将 .py 转换为 .ipynb 文件 - Python 代码示例

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

代码示例1
Use p2j to convert Python source code to Jupyter Notebook.

From the command line, run

-->pip install p2j

then go to the directory where your file is located. -->( for example-> cd downloads, if the file is in download directory)

then run

-->p2j myscript.py
This will create a myscript.ipynb file.