-1

Good morning. !!!

We want to develop a platform for machine learning using data from sensors.

The language used in the project is C# winform.

I want to excuter python from c# winform.

With winforms as the UI I want to run the analysis with python and see the results.

numpy, pandas, etc... Python code for running a machine.

I would like to advise you if you know someone who has been worried about me or how.

thanks!!

1 Answers1

0

You can execute Python in a new application with Process.Start ( https://msdn.microsoft.com/en-us/library/e8zac0ca(v=vs.110).aspx )

You might have to wait until the Process is finished with Process.WaitForExit, and return the results somehow, e.g. via a separate file or by starting it using a ProcessStartInfo with RedirectStandardInput = true, so that you can read the output written with the print( ) statement in python.

phi1010
  • 678
  • 6
  • 13