如何使用-X:框架在IronPython的? [英] How can I use –X:Frames in Ironpython?

查看:181
本文介绍了如何使用-X:框架在IronPython的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2010的+ IronPython的为.NET4



我想在IronPython的使用numpy的,他们说我必须使用框架的支持。
所以,我应该运行具有-X IPY:框架或-X:在命令行上FullFrames



不过,我有两个问题:
1.how我可以使用-X:框架或-X:FullFrames在IronPython的交互式控制台



2。如果我使用C#4负载PY含有numpy的,我怎么能使用extern参数类似-X:框架或-X:?FullFrames



非常感谢


解决方案

  1. IronPython的工具为Visual Studio已经由Python的工具为Visual Studio弃用(见的 http://pytools.codeplex.com )。在VS 2010中使用Python的工具:开工具=>选项=> Python工具=>解释选项和补充。-X:FullFrames到交互式窗口选项字段


  2. 当您通过 IronPython.Hosting.Python.CreateEngine ,使用一个接受的词典超载创建IronPython的引擎。这本字典参数需要的 FullFrames 的按键来的真正的。在IronPython的大众求表达式的效果会给你一个好主意如何做到这一点。



Visual Studio 2010 + Ironpython for .net4

I want to use numpy in ironpython, and they said I must use frames support. So, I should running ipy with -X:Frames or -X:FullFrames on the command line.

But, I have two questions: 1.how can i use -X:Frames or -X:FullFrames in Ironpython Interactive console?

2.If I use C# 4 to load py which contained numpy, how can I use extern parameter like -X:Frames or -X:FullFrames?

Thanks a lot.

解决方案

  1. IronPython Tools for Visual Studio has been deprecated by Python Tools for Visual Studio (see http://pytools.codeplex.com). Using Python Tools in VS 2010: open Tools=>Options=>Python Tools=>Interpreter Options and add "-X:FullFrames" to the "Interactive Window Options" field.

  2. When you create your IronPython engine via IronPython.Hosting.Python.CreateEngine, use the overload that accepts a Dictionary. This dictionary parameter needs a FullFrames key set to true. Performance of Mass-Evaluating Expressions in IronPython will give you a good idea how to do this.

这篇关于如何使用-X:框架在IronPython的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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