【问题标题】:How to use IPython with IronPython如何将 IPython 与 IronPython 一起使用
【发布时间】:2014-10-28 01:01:56
【问题描述】:

让 IPython 使用 IronPython 作为 Python 解释器的过程是什么?

我知道之前有一些问题:What is required to use ipython in ironpython?

但既然这些问题应该得到解决,我该如何解决呢?

安装程序没有检测到 IronPython 作为 Python 解释器的一个版本,而不是我想的那样。但我想知道如何做到这一点。

我(理想情况下)希望能够在同一台机器上同时运行 IPython 的 CPython 和 IronPython 版本。

【问题讨论】:

    标签: python ironpython ipython


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      安装在我的系统上/usr/bin/ipython 的 IPython 脚本只有两行代码来调用解释器:

      from IPython import start_ipython
      start_ipython()
      

      所以在 IronPython 下运行它,看看它是如何工作的。

      但截至 2011 年 2 月,似乎仍有问题:http://groups.google.com/group/ironpy/browse_thread/thread/b90273c618e38763?pli=1

      编辑:现在可以使用,请参阅their instructions

      【讨论】:

      • 现在应该是 import IPython; Python.embed()
      • 刚刚将其更新为我在系统上看到的最新代码(“start_ipython()”)。
      猜你喜欢
      • 2010-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-16
      相关资源
      最近更新 更多