jupyter notebook 中运行.py文件

jupyter notebook页面,在需要运行的name.py文件目录页面中,新建python文件,打开,在cell中添加如下命令:

%run name.py

运行该cell即可。

根据留言建议,添加了一个示意图。

jupyter notebook 中运行.py文件_第1张图片

你可能感兴趣的:(python,jupyter,python,ide)