All Questions
38 questions
1
vote
2
answers
7k
views
Executing Python Script from Windows Forms .NET
I am fairly new to Python and .NET in general, but decided to ask more competent people, since I have been struggling with the issue of executing python script from Windows Forms.
The basic idea of my ...
2
votes
1
answer
1k
views
Python .NET WinForms - How to pass info from a textbox to a button click event
Before I get into my question, I am (self) learning how Python and the .NET CLR interact with each other. It has been a fun, yet, at times, a frustrating experience.
With that said, I am playing ...
9
votes
5
answers
4k
views
Running Python Code in .NET Environment without Installing Python
Is it possible to productionize Python code in a .NET/C# environment without installing Python and without converting the Python code to C#, i.e. just deploy the code as is?
I know installing the ...
3
votes
1
answer
564
views
Pythonnet Error: XamlParseException : 'Failed to create a 'Click' from the text
I was working on IronPython before (with WPF for developing some GUIs), and recently I started to try pythonnet.
But I found that the xaml file that worked on IronPython does not work on CPython + ...
15
votes
2
answers
21k
views
How to integrate Python Code with C#.Net Core language? [closed]
Am trying to integrate python code in my .net core application for data analysis and some machine learning classification. How can I do this the best way?
Note: I don't want to execute scripts with ...
29
votes
4
answers
49k
views
Python: AttributeError: 'module' object has no attribute 'AddReference'?
Am trying to use clr.AddReference and clr.AddReferenceToFile to import an assembly, but python(2.7) keeps making this error:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in ...
23
votes
2
answers
3k
views
How to install NumPy for IronPython in 2017?
I have found the old answer to this question, but the instructions provided in the mentioned post are no longer working... Essentially the URL where NumPy for IronPython was stored is broken.
How to ...
2
votes
1
answer
912
views
Can't use SaveFileDialog of .Net with pythonnet
I've got some issues using the SaveFileDialog class of .Net in Python 3.4 with the pythonnet package. Above you will see a little sample of code to demonstrate that issue. The code itself works pretty ...
2
votes
0
answers
2k
views
IronPython does not find module although path is correctly set
In my C#-Application (x64) I use IronPython (v2.7.7 installed via nuget) to execute python code. I installed python 2.7 x64 manually and installed the package spacy in it. I can find it at C:\...
3
votes
0
answers
1k
views
How to pass numpy array values from python script to .NET? [closed]
I need to call Python Script inside .NET (C#) tests and get numpy array values from that script. What is the best way to do this? Would the IronPython be appropriate way to do this or this is a better ...
4
votes
1
answer
13k
views
How to integrate Python with ASP.NET
I am making an ASP.NET website in which I would like to use some python 3.x code. Not exactly 'some', but a lot.
I have started searching for a solution but not exactly reached a good one yet. I am ...
1
vote
0
answers
178
views
Using Gstreamer Python module with IronPython
I want to use GStreamer Python Binding in my ASP.NET application as a plugin of Gstreamer I need is available in GStreamer's Python binding rather than its C# binding.
To achieve the goal I have done ...
2
votes
2
answers
896
views
C# - Using method from a Python file
I have two files, a regular python (.py) file and a visual studio C# file (.cs). I want to use a function in the python file which returns a string and use that string in the C# file.
Basically:
#...
1
vote
0
answers
2k
views
Python for .net 64 bit installation
I recently installed python for .net on my 64 bit machine. I followed the instructions from https://github.com/geographika/PythonDotNet. I copied the files from /PythonDotNet202_py27_net4_x64 to C:\...
0
votes
2
answers
513
views
Python and IronPython communication inquiry
Purpose of this program is to control two measurement instruments through GPIB using Python.
Inst_A: controlled with CPython and PyVISA (Not yet available in IronPython).
Inst_B: controlled through ...