Hello,
has anyone successfully used multithreading or multiprocessing with Python.Net?
I tried to multi-thread from the .Net side and the Python.Net libraries seem to have issues in the RunScript method. I had to take an implementation off the web of that method because the shipped method doesn’t seem to work.
I then had a working multi-processing example from CPython that I tried from Python.Net but it gives an error
'module' object has no attribute 'argv'
When trying to create a process pool by executing the line
pool = Pool(processes=4)
Is it possible to do multithreading or multiprocessing with Python.Net?
Thanks,
Alan
Hi,
I have a project in C# and visual studio 2022. The project uses a few scripts in python that are embedded in C# code using the Python.Net interface. I have used the application with several several different versions of python and wotkd perfectly.
I am looking a descrptive and usable way to be able to debug my python code while I am in C# code and debugging it. In other words to be able to break in python code from C# code.
With IronPython this was doable in Visual studio but I am not using IronPython anymore.
Thanks in advance.
IK