The .ipynb file in Jupyter notebook is converted to .py and packaged into dll

The solution is to create a new cell at the end of the written .ipynb file, and write the code as follows:

try:   
    !jupyter nbconvert --to python file_name.ipynb
    # python即转化为.py,script即转化为.html
    # file_name.ipynb即当前module的文件名
except:
    pass

Compile python into dll file

import clr 
clr.CompileModules("d:\psaa\pdd.dll", "C:\pddad\setup.py")

Guess you like

Origin blog.csdn.net/qq_43360777/article/details/106193309