如何始终在 Spyder 项目中运行主文件 [英] How to always run a main file in Spyder Project

查看:53
本文介绍了如何始终在 Spyder 项目中运行主文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个包含多个文件的 python 项目,很烦人的是我必须在单击运行之前选择描述和调用 main 的文件,因为如果不是 Spyder3(Anaconda) 运行当前选定的文件.

I'm developing a python project with multiple files, it's annoying that I have to select the file where main is described and called before click run because if not Spyder3(Anaconda) runs the current selected file.

如果打开并选择了文件,我该如何从 mainPrjPy.py 中的 main() 独立运行我的项目?

How can I do to run my project from main() in mainPrjPy.py independent if the file is opened and selected?

谢谢

我想解释一下,我使用 Spyder 作为 Matlab 替代物理和电子设计的数学模拟,这个项目会随着不同的人生成不同的算法和数据处理器而发展.

I want to explain that I'm using Spyder as Matlab substitute for Physics and math simulation for electronic design, this project would grow with different people generating different algorithms and data processor.

推荐答案

(Spyder 维护者在这里)我们目前没有这个功能(2019 年 11 月),抱歉.

(Spyder maintainer here) We don't have this functionality at the moment (November 2019), sorry.

这篇关于如何始终在 Spyder 项目中运行主文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆