How can I use –X:Frames in Ironpython?

我们两清 提交于 2019-12-18 17:29:08

问题


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:


  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.



来源:https://stackoverflow.com/questions/3078039/how-can-i-use-xframes-in-ironpython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!