本文介绍了Pydev - 启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我有简单的问题,所以我googled它,但我找不到答案。

Maybe I got simple questions so I googled it but I can't find answer.

我使用Pydev / Eclipse,我想在控制台。
首先我想修改会话的启动 - 这意味着一些模块在启动(数学,numpy,scipy等等)期间加载。
我在哪里/如何修改Pydev控制台启动?

I am using Pydev/Eclipse and I want to run the script within Console. First I want to modify the startup of the session - it means some modules are loaded during start (math, numpy, scipy, etc...). Where/how can I modify Pydev Console startup?

其次,我使用righ点击脚本文件和Run as - > Python Run 然后它在控制台中执行并终止。所以我想留在控制台和互动,而不是终止。
如何获得此功能?

Secondly, I execute the script using righ-click on script file and "Run as -> Python Run" then it's executed within console and terminated. So I want to stay within Console and to be interactive and not be terminated. How can I get such feature?

谢谢!

b Peter

推荐答案

我认为你想要的是交互式控制台。请参阅:

I think that what you want is the interactive console. See: http://pydev.org/manual_adv_interactive_console.html

您可以在首选项页面中配置初始命令。

You can configure the initial commands in the preferences page.

这篇关于Pydev - 启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 14:58