ironpython

How does ironpython speed compare to other .net languages?

不羁岁月 提交于 2019-12-08 15:47:00
问题 I would like to give sources for what I'm saying but I just dont have them, it's something I heard. Once a programming professor told me that some software benchmarking done to .net vs Python in some particular items it gave a relation of 5:8 in favor of .NET . That was his argument in favor of Python not being so much slower than .NET Here it's the thing, I would like to try IronPython since I could combine the web framework I know the most (asp.net) with the language I like the most (Python

Spotfire - mark records and send to clipboard

£可爱£侵袭症+ 提交于 2019-12-08 12:59:38
问题 I'd like to create a Spotfire button action control that does the following Select all rows in a table visualization Send the selected rows to the clipboard First step was handled pretty easily (borrowed from here). For the second step, I was unsuccessful in my initial attempts to send to clipboard with script (e.g. as suggested here). I was partially successful in a followup attempt by sending ctrl-c programatically to spotfire (see spotfired.blogspot.co.id/2014/04/pressing-keys

Why would one choose Iron Python instead of Boo? [duplicate]

瘦欲@ 提交于 2019-12-08 07:42:59
问题 This question already has answers here : Closed 10 years ago . Possible Duplicates: BOO Vs IronPython Boo vs. IronPython Say you want to embed a scripting language into a .NET application. Boo is modelled on Python syntax, but also includes type inference, and just in general seems to be a better, more modern language to embed as a scripting language. Why, then, is there so much fuss about Iron Python? LATER As was pointed out, this question is an exact duplicate of: this and this 回答1:

Spotfire Export Automatically

天大地大妈咪最大 提交于 2019-12-08 06:52:41
问题 I'm not at all sure that what I need is possible with the tools that I have, but I thought I'd ask. I have the following Python script (technically IronPython, but I don't fully understand the difference), that I pulled from a blog and modified for my purposes: import datetime from System.IO import StreamWriter from Spotfire.Dxp.Application.Visuals import TablePlot tempFolder = "C:\\Spotfire Exports\\" tempFilename = "Data.txt" writer = StreamWriter(tempFolder + tempFilename) vTable.As

Using PyQt from IronPython

你。 提交于 2019-12-08 03:00:08
问题 Is it possible to use PyQt from IronPython? From what I've read IronPython should work with CPython compatible libraries but out of the box it doesn't seem to work. If it is possible, will code completion work? 回答1: You can't import CPython modules from IronPython directly. There is a project which tries to provide a way to do this: http://code.google.com/p/ironclad/, but I'm not sure if they support PyQT already. On the other hand, you might try using WPF instead of PyQT. I used both, and I

How to add reference to a dynamic assembly for compiling another dynamic assembly?

ぐ巨炮叔叔 提交于 2019-12-08 00:37:22
问题 In my AppDomain there are few dynamic assembly, when I try codeDom.CompileAssemblyFromSource to Compile another new assembly, I can't figure out a way to add those dynamic assemble to ReferencedAssemblies. foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { compilerParameters.ReferencedAssemblies.Add(assembly.Location); } Failed, as dynamic assembly doesn't have Location. Thanks in advance. PS: I'm actually trying to use ASP.Net MVC 3's new Razor template engine in IronPython.

IronPython Script debugging

一世执手 提交于 2019-12-07 23:51:16
问题 I have a .NET application and there is an IronPython script tab-page. Scripts work properly, but I would strongly like to have a possibility to debug them right in the application and to toggle breakpoints. Are there any solutions of this problem? 回答1: You can find an IronPython debugger here and there is a series of blogs about creating it here. 来源: https://stackoverflow.com/questions/9648786/ironpython-script-debugging

Get last statement result in embedded IronPython v2

最后都变了- 提交于 2019-12-07 21:54:48
问题 This post in Mike Stall's blog states that The last expression result is stored as the global variable "_" , so you can retrieve it like so: object o = m_python.GetVariable("_"); But currently in v2 scope has no such variable after executing, e.g., scriptEngine.CreateScriptSourceFromString("a=1+2;a+1", SourceCodeKind.Statements); Is there any way to access result (a+1) without explicitly define variable? 回答1: I suspect with IronPython 2 you need to use SourceCodeKind.Interactive. I'll try it

IronPython, Click Once, .NET 2.0 Error - thoughts?

六眼飞鱼酱① 提交于 2019-12-07 21:39:58
问题 I'm am trying to roll out a test application to test the feasibility of righting a Click Once Smart Client app that also uses a rules engine customizable by embedding IronPython. So far all users but me get this error (below) when invoking the script engine. Do I need to do something special to force deployment of the IronPython and Scripting assemblies? I thought that would be automatic because they were referenced in my project. Is this just not feasible in .NET 2.0? Thoughts? *************