Skip to main content

All Questions

Tagged with
0 votes
1 answer
48 views

Is there a way to get Revit Python Shell not to buffer the print statement?

Is there a way to get Revit Python Shell not to buffer the print statement? For example, with this code, it is clear to see that RPS will not show anything on the screen until after the loop has ...
Michelle's user avatar
0 votes
0 answers
47 views

How do I include the os module with IronPython 3.4 in my C# project, and also run a script?

I am attempting to use IronPython 3.4 with my C# / .NET MAUI project. As IronPython 3.4 is pretty new, I am not sure if there is much support for it yet. As a part of experimentation, I am attempting ...
Ben Underwood's user avatar
2 votes
2 answers
48 views

How can i understand what is running IronPython or Python?

With what command inside code can I understand that IronPython or Python is running?
Dmitry Dronov's user avatar
0 votes
1 answer
69 views

When i run inversetest.py in wpf app, I get error on predict model

When I run python code in c#, I get error on line of predict model but it run in python well. I used any way such as python.net, ironPython, Process,... but it did not work: private void ...
soheila's user avatar
  • 15
0 votes
0 answers
73 views

Using ironpython from C# async-await causes the app to hang

From C# we have to call python function, in this case the nltk lib lemmatize function (which still has no good C# implementation). We call it like this: private string Lemmatize(string word) { using (...
Zoltan Hernyak's user avatar
0 votes
0 answers
73 views

In .NET Framework how to use IronPython package with Python modules, eg: TensorFlow, Pandas, NumPy

My program is in .net framework which reads python script and tries to execute it using IronPython packages. In the python script, we are importing python modules (can be any python module). While ...
95m_abs's user avatar
0 votes
1 answer
65 views

How to use iopen pyxl in C#?

Im creating a Windows Forms Project based on C# using python scripts. But when click the button, which should start a python script i have an error "No module named 'openpyxl'" private void ...
Argentrix's user avatar
0 votes
0 answers
38 views

Unhandled exception: When importing my Deep learning python code on C#

Heads Up: I am using Visual Studio 2022 My python code consists of a machine learning model which is getting trained. So it has python libraries imported within the Python code (Ex: Import numpy as ...
Aksh's user avatar
  • 1
0 votes
2 answers
70 views

IronPython garbage collection - How does it provides compatibility with C-extensions?

In this part of the talk on GIL by Larry Hastings, there is an explanation about how ironclad provides C-extension compatibility with IronPython. This is the interesting part of the talk: We ...
Saleh's user avatar
  • 1,951
0 votes
0 answers
33 views

Why my python code doesn't print in a separate thread? (IronPython)

I'm not sure, what I did wrong: So, I started a thread with the ThreadStart()-delegate from the .net-libary. It's delegating to another method. In the method I have a for-loop. But when I'm looking in ...
Hoernchen117's user avatar
1 vote
0 answers
79 views

How to integrate IronPython to run a embedded Python Script

I have 2 Python Scripts embedded into my C# Application. Essentially; 1 python script is a Decode Script and the other Script is to Encode. The idea that I have is; how can I execute these python ...
user23300548's user avatar
2 votes
0 answers
101 views

Exporting Spotfire visualizations to template Powerpoint

I'm trying to export the visualizations in Spotfire into a Pre-made company Powerpoint, where specific visualizations going into specific places in the Powerpoint. I've tried following this article: &...
Mattia Sferrazza's user avatar
0 votes
1 answer
277 views

How can I get IronPython in C# to run a script that requires an active VENV? Is this possible?

I've installed IronPython 3.4 (https://github.com/IronLanguages/ironpython3/releases/tag/v3.4.1) and I'm trying to run several font-related python scripts that depend upon an active VENV (FontTools, ...
fmotion1's user avatar
  • 541
0 votes
2 answers
621 views

Trying to run Python Code on .NET using Ironpython

I am trying to run a simple python code using C# using Iron Python Package. Why it throws the below error (attached in screenshot) The code runs fine if i don't import libraries, but it throws error ...
Nayan Nirvikar's user avatar
0 votes
1 answer
756 views

How to fix VS Code autocompletion to access all layers of a Python.NET - .NET assembly interface?

I am programming in Python 3 in VS Code, using Python.NET to interface with a .NET based API (AudioPrecision.API.dll). I want to use autocomplete similar to Intellisense in Visual Studio, to make it ...
Ben's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
71