1

i am using a c# windows forum and running a python file using iron python, the file is running but i would like to be able to use the output on c#

 private void button1_Click(object sender, EventArgs e)
    {
        ScriptEngine engine = Python.CreateEngine();
        engine.ExecuteFile(@"hi_test.py");
     }

python

print("hi")
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.