简体   繁体   English

如何在IronPython中使用IPython

[英]How to use IPython with IronPython

What is the procedure to get IPython to use IronPython as it's Python interpreter? 如何使IPython将IronPython用作其Python解释器?

I know there were previously some issues: What is required to use ipython in ironpython? 我知道以前存在一些问题: 在ironpython中使用ipython需要什么?

But now that these issues should be fixed, how do i actually go about this? 但是现在应该解决这些问题,实际上我该如何处理?

The install doesn't detect IronPython as a version of the Python interpreter, not that I thought it would. 安装程序不会将IronPython检测为Python解释器的版本,并非我认为会。 But I'm wondering how to do this. 但我想知道如何做到这一点。

I'd (ideally) like the ability to run both the CPython and IronPython versions of IPython on the same machine. 我(理想地)希望能够在同一台计算机上同时运行IPython的CPython版本和IronPython版本。

The IPython script that installs on my system in /usr/bin/ipython is only two lines of code to invoke the interpreter: 在我的系统上的/usr/bin/ipython中安装的IPython脚本只有两行代码可以调用解释器:

from IPython import start_ipython
start_ipython()

So run that under IronPython and see how it works. 因此,在IronPython下运行它,看看它是如何工作的。

But as of February 2011, it looks like there were still problems: http://groups.google.com/group/ironpy/browse_thread/thread/b90273c618e38763?pli=1 但是截至2011年2月,似乎仍然存在问题: http : //groups.google.com/group/ironpy/browse_thread/thread/b90273c618e38763?pli=1

EDIT : It works now, see their instructions . 编辑 :现在可以使用,请参阅他们的说明

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

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