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")