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
1 answer

How to get a file's timestamp in spotfire?

I have a spotfire template that runs every night using scheduler and I want to show its last refresh time on the template. Is there anyway I can do it within native spotfire functionality or using IronPython ?
Tarun Parmar
  • 181
  • 13
1
vote
0 answers

IronPython - KeyNotFoundException

I am trying to run a Python script from C#. This Python script needs to use the music21 module. Running the script alone (with score set to something) works fine, but I get a KeyNotFoundException from IronPython with message = "abcFormat" and…
seattleite7
  • 350
  • 1
  • 5
  • 15
1
vote
1 answer

Show all data when no items are marked

In Spotfire, is there a way to write a script that changes the default setting of "Empty Visualization" when no items are marked? I have a button that changes the chart from line to bar (and then back again) but since I am using a heat map to mark…
B_H
  • 13
  • 2
1
vote
1 answer

How to draw chart using WPF and IronPython

I'm a french beginner dev and I need to draw charts using WPF and IronPython. I'm coding with MVS2010 and I didn't find any help on Google. Does anybody have an idea ? Something to help me ? Thanks all, Ben
redkine
  • 83
  • 1
  • 1
  • 5
1
vote
1 answer

Run a VBA macro in Spotfire using Ironpython

So I would try ask over in this thread IronPython - Run an Excel Macro but I don't have enough reputation. So roughly following the code given in the link I created some code which would save a file to a specific location, then open a workbook that…
1
vote
0 answers

Executing python script with zmq from C# using IronPython not working

I'm using ZeroMQ for inter-process communication between C# managed application and python script. When calling script from C#, using IronPython I get following error : An unhandled exception of type IronPython.Runtime.Exceptions.ImportException…
civa
  • 459
  • 3
  • 12
1
vote
1 answer

Creating 100+ Windows Form Components Using a Loop

Loosing my mind over this - been through many different articles, forums and questions but still can't figure this out. I'm a programming noob, and I am currently using IronPython to create a Windows Form application. Visual Studio 2015 is my IDE. I…
D Martin
  • 23
  • 3
1
vote
1 answer

Tibco SPOTFIRE 7.5 how execute a custom script on load of analisys

I have to execute a script on load of an Spotfire analisys. I used this method: JScript: $(function () { function executeScript() { $('#hiddenBtn input').click(); } $(document).ready(function(){executeScript()}); }); HTML:
1
vote
0 answers

AvalonEdit copy/paste as text

I'm using AvalonEdit as editor and output window for IronPython in a wpf application. At runtime I often have to copy/paste data from the output window (AvalonEdit) to Excel for further processing. Unfortunately AvalonEdit copies the data as…
luni64
  • 321
  • 2
  • 8
1
vote
0 answers

Unable to resize the blob/image before setting it to document property for the use in a text area

I am trying to reload an image in a loop from the blob's URL into a text area. So, I am following the given IronPython examples to be able to download a blob and set to a document property called Img1 and eventually I'm setting that property to a…
S4nd33p
  • 431
  • 2
  • 7
  • 17
1
vote
0 answers

Optimize Kruskal Wallis Test Spotfire

On spotfire i had created several Kruskal Wallis test. First i had created a pivot table and after i did a data relationship (Kruskal Wallis). Then i reflate my tests with a button (script python). That is my code : kruskal =…
Laurent Cesaro
  • 341
  • 1
  • 3
  • 17
1
vote
1 answer

DLR: IAttributesCollection deprecated?

In my code I've been making functions like: public void Foo([ParamsDictionary] IAttributesCollection kwargs) {} But I got curious. What all implements that interface? So I pulled down the IronPython source. In it I found this…
user47589
1
vote
0 answers

Calling C# method using external program (ie: Iron Python)

I've been working on using external programs to script for a C# project, and being somewhat of a programming noob, I've hit a roadblock. So far I've been able call a python script using a button click in the C# project. I implemented this by…
spaderdabomb
  • 942
  • 12
  • 28
1
vote
2 answers

A working template-engine for IronPython?

I'd love to use a nice template-engine with IronPython but havent succeded doing so. Would be best to be able to without needing to add Python standard lib's. Dont know if that's possible. I like the Ruby Erb syntax, and hoped to be able to use…
joeriks
  • 3,382
  • 8
  • 32
  • 42
1
vote
1 answer

Spotfire: DateTimeNow() -1 Month to limit line graph

I am working in Spotfire 7.0.1 I have a line graph displaying Actual vs. Plan dates for a project currently in progress. The plan line (grey) extends to the end of the project timeline. The Actual line DID extend to the as well, but I used a Custom…
JBiggie
  • 11
  • 3