ironpython

Why the Common Language Runtime Cannot Support Java [closed]

大城市里の小女人 提交于 2019-12-03 12:25:32
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Today the Common Language Run Time Supports Many Languages including Iron Python and Iron Ruby. We can similarly can use J Ruby and J

What IronPython IDE should I use?

流过昼夜 提交于 2019-12-03 12:05:47
This question probably looks a lot like IDE for ironpython on windows question here on stackoverflow. But I read the answers on that question I still have no idea what IDE I should use. What I'm looking for is to know pros and cons of a specific IDE. I recently started learning IronPython. The only IDE I used so far is IronPython Studio that integrates with Visual Studio. It was a logical choice for me because I use Visual Studio when I work with C#. One of the problem I have with IronPython Studio is that I cannot change the default colors. I have a dark gray background color and black Python

IronPython invocation from C# (with SciPy) fails with ImportException: “No module named mtrand”

99封情书 提交于 2019-12-03 11:40:09
问题 I have a python library I am trying to use via IronPython (v2.7 RC1 [2.7.0.30]) invocation from C# application. The library uses NumPy and SciPy quite extensively, which does work with SciPy and NumPy for .NET when ran using ipy from command line like this: ipy.exe -X:Frames file_from_lib_importing_numpy.py However, when I invoke IronPython from C# using the code below, an exception is thrown: ImportException "No module named mtrand" at Microsoft.Scripting.Runtime.LightExceptions

IronPython libraries for scientific plots [closed]

扶醉桌前 提交于 2019-12-03 09:32:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What are good python libraries which IronPython supports (current version wise) for drawing scientific plots on Win ? By "scientific plots" I mean simple x-y plots, x-y-z surface plots and x-y-z shaded plots. 回答1: According to this it's possible to use matplotlib with IronPython. Which will at least get you 2D

Cpython interpretter / IronPython interpretter No module named clr

不打扰是莪最后的温柔 提交于 2019-12-03 09:03:54
i'm using IronPython and i want to create some windows form, i want to create a windows form with some button, and i want to do this in visual studio with iron python, i'm using visual studio 2012 integrated edition, each time i create an "ironpython windows form" project, when i want to run it, it says: The project is currently set to use the .NET debugger for IronPython debugging but the project is configured to start with a CPython interpreter. To fix this change the debugger type in project properties->Debug->Launch mode when i change debugger to Standard Python Launcher, it says:

Generate .NET Assemblies from Iron Python

做~自己de王妃 提交于 2019-12-03 08:43:45
问题 I have a Iron Python script that I want to run and then have the ipy interpreter output an assembly that I can run on other machines. How do I do that? Is there a switch I can pass to ipy.exe? 回答1: There is a tool that ships with IronPython called Pyc or the Python Command-Line Compiler. If you installed the latest version 2.6 of IronPython, then pyc.py will be available at C:\Program Files (x86)\IronPython 2.6\Tools\Scripts or wherever you installed IronPython on your system. If you have

Are CPython, IronPython, Jython scripts compatible with each other?

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am pretty sure that python scripts will work in all three, but I want to make sure. I have read here and there about editors that can write CPython, Jython, IronPython and I am hoping that I am looking to much into the distinction. My situation is I have 3 different api's that I want to test. Each api performs the same functionality code wise, but they are different in implementation. I am writing wrappers around each language's apis. Each wrapper should expose the exact same functionality and implementation to python using Boost::python,

IronPython cannot import module “os”

♀尐吖头ヾ 提交于 2019-12-03 08:31:20
my c# code: //Create the ScriptRuntime engine = Python.CreateEngine(); //Create the scope for the ScriptEngine scope = engine.CreateScope(); string pyfile = "D:\\MyAddin\\test.py"; ScriptSource source = engine.CreateScriptSourceFromFile(pyfile); var rt = source.Execute(scope); and my test.py: import os import sys ... print("test") ... I get no problem at build time, but at runtime VS give me a error "cannot import module "os"". Where is the error? When hosting IronPython in your code, you'll need to add the libraries to your path. Not all will be included by default. You can add it through the

“IronPython + .NET” vs “Python + PyQt”. Which one is better for Windows App development?

本秂侑毒 提交于 2019-12-03 08:10:52
I'm new in using Python. I would like to develop Windows GUI Application using Python. After some research, I found that I have 2 options:- IronPython + .NET Framework Python + PyQt May I know which one is better for Windows Application development? Which option has more features (e.g. database support, etc)? Other than the .NET support, is there any big difference between IronPython and Python? Which one is a better choice for me? Thank you. Patrick.L I faced the same issue and have, with misgivings, decided to go with IronPython/C#/.Net. I liked Qt but got cold feet when it was sold to Nokia

C# / IronPython Interop with shared C# Class Library

↘锁芯ラ 提交于 2019-12-03 07:52:54
问题 I'm trying to use IronPython as an intermediary between a C# GUI and some C# libraries, so that it can be scripted post compile time. I have a Class library DLL that is used by both the GUI and the python and is something along the lines of this: namespace MyLib { public class MyClass { public string Name { get; set; } public MyClass(string name) { this.Name = name; } } } The IronPython code is as follows: import clr clr.AddReferenceToFile(r"MyLib.dll") from MyLib import MyClass ReturnObject