Questions tagged [ironpython]

IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. IronPython can use the .NET Framework and Python libraries, and other .NET languages can use Python code just as easily. Use this tag for implementation-specific questions, general Python questions should just be tagged with "python".

IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. IronPython can use the .NET Framework and Python libraries, and other .NET languages can use Python code just as easily.

IronPython can be obtained at http://ironpython.net/.

Comparison of IronPython vs. C# for 'Hello World'

c#:

using System;
class Hello
{
    static void Main() 
    {
        Console.WriteLine("Hello, World");
    }
}

IronPython:

print "Hello, World"

IronPython is a Dynamic Language that runs on the .NET DLR (Dynamic Language Runtime) in contrast with VB.NET and C# which are static languages.

Iron Python can also import DLL files compiled in other languages and use functions defined therein. For example:

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import *

Chat/Communication

Join our Gitter-Chat under: https://gitter.im/IronLanguages/main

2618 questions
1
vote
2 answers

Ironpython Studio forms

This is a two part question. A dumb technical query and a broader query about my possibly faulty approach to learning to do some things in a language I'm new to. I'm just playing around with a few Python GUI libraries (mostly wxPython and…
One Monkey
1
vote
0 answers

How to see .NET inner exception in IronPython interactive window?

IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.42000 (32-bit) >>> from System import Exception >>> raise Exception("outer", Exception("inner")) Traceback (most recent call last): File "", line 1, in Exception: outer >>> How can I…
EM0
  • 5,369
  • 7
  • 51
  • 85
1
vote
0 answers

Using lxml with IronPython

Before I put my question, I want to say that I have already searched on stackoverflow and several other websites about the problem, but the answers I found were not very satisfying in detail. My problem is, I need to get a JSON data from an…
LoLeRji
  • 51
  • 7
1
vote
1 answer

Import C# dll's dotted name files in IronPython problems

I've been trying to import two C # .dll using IronPython. One is called m1.sdk.dll the other is called m1.sdk.something.dll. But I got error. The error message says it could not find a type in m1.sdk.something.dll. But they are loaded through…
1
vote
1 answer

Pass variable from C# - IronPython to a Python script

I have a WPF application. For the purpose of this question, let's say it's a simple Window with a button. When I click on that button, I would like a Python script to be executed. Therefore, I went looking around and found out that I can run Python…
Marks
  • 165
  • 4
  • 19
1
vote
1 answer

Type conversion from IronPython.Modules.PythonDateTime to System.DateTime

I'm hosting an IronPython engine instance in my C# (Silverlight 4) app to execute some Python scripts on the fly. These scripts can return values of either IronPython.Modules.PythonDateTime+datetime, IronPython.Modules.PythonDateTime+date or…
1
vote
2 answers

How can I add attributes to methods and types defined in IronPython?

Since IronPython doesn't support attributes I am wondering if there is another way to decorate IronPython classes with attributes, perhaps with reflection?
andersjanmyr
  • 11,302
  • 5
  • 29
  • 29
1
vote
0 answers

IronPython fails to load dependency possibly due to name conflict

I am experiencing an issue with IronPython when referencing an assembly that has the same name (part before the .dll) as another file in the same directory. For example, if Foo.xml and Foo.Xml.dll are in the same directory, the directory has been…
burwashw
  • 11
  • 3
1
vote
1 answer

How to Dynamically Generate WPF Elements in Ironpython

I'm using Ironpython 2.7. Is it possible to dynamically generate elements of a wpf window based on data found at runtime? The program will call a database and load parameters, and I'd like to generate a TextBox (and ComboBox) for each parameter…
solvador
  • 95
  • 1
  • 10
1
vote
2 answers

How to filter out the null values in X-axis for Bar chart in Spotfire

I am working with a data set where I have few columns with few null values in those. When I try to plot bar chart with these columns on x-aixs it is showing separate bar with this having no name. Is there any way we don't show the null values in the…
sofuser9
  • 219
  • 3
  • 14
1
vote
1 answer

Is it possible to sort a dynamic array with strings in Iron python?

I am writing a iron python code in spotfire to pull data from a data table based on demand, by passing existing data table filters. The thing is user wants to sort the values in a particular sorted order specified by them. Here is the problem: if we…
sofuser9
  • 219
  • 3
  • 14
1
vote
1 answer

Is it possible to show a image/message in spotfire text area to wait for data to be loaded?

I built a spotfire report in which i am retrieving data from web by running iron python script on a button click .But the problem here is after clicking the button the script is running at the back and it may take few seconds to populate the data in…
sofuser9
  • 219
  • 3
  • 14
1
vote
0 answers

Marked value to a input field in text area

Marking in the first table will pass any of the column value in the marked row to input field property control in the text area b/n two tables and after clicking the button beside the property control it will get data on demand from B table I am…
sofuser9
  • 219
  • 3
  • 14
1
vote
1 answer

Iron Python script in spotfire web player

I have a html page which i display a spotfire report in using the web player. I would like to have the option of refreshing the data by pressing a button i create, and i couldnt find a way to do that using the web player. I know there is a way to do…
Dana S
  • 31
  • 3
1
vote
1 answer

Postable Commands from Revit API using Dynamo for Revit(2015)

Here's the documentation for the relevant API material What I'm trying to do is be able to call postable commands from Dynamo (in this case, I cannot even debug because the import clause fails for Autodesk.Revit.UI). I got the number 10:05:57.614…
Gabe Nones
  • 193
  • 2
  • 11