简体   繁体   English

使PyScripter Portable可与IPython一起使用

[英]Getting PyScripter Portable to work with IPython

How can I set PyScripter up to work with IPython as the "embedded" interpreter rather than the plain Python one? 如何设置PyScripter与IPython一起使用,使其成为“嵌入式”解释器,而不是普通的Python解释器?
I am using portable python. 我正在使用便携式python。

I've tried for a few hours with no success. 我尝试了几个小时都没有成功。
I imagined it's just a C/L parameter. 我以为这只是一个C / L参数。
But that doesn't seem the case. 但这似乎并非如此。

Help much appreciated. 帮助非常感谢。

I don't think that this is possible as PyScripter does this based on a specified Python engine. 我认为这是不可能的,因为PyScripter会基于指定的Python引擎执行此操作。 For portable installation these settings are used and this is also what Portable Python shortcut 对于便携式安装,将使用这些设置 ,这也是便携式Python快捷方式

PyScripter-Portable.exe PyScripter-Portable.exe

does to set up the environment and configure Python engine to be used. 设置环境并配置要使用的Python引擎。

I don't know if this will work but you could try the following in the embedded interpreter: 我不知道这是否行得通,但是您可以在嵌入式解释器中尝试以下操作:

>>> from IPython import embed
>>> embed()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM