4

I have a web page developed using Asp .Net MVC and I have a project developed in Python that has some methods to make predictions using Machine Learning. In this context, how can I make my web page communicate with my project in Python and use the methods implemented there?

0

1 Answer 1

6

Assuming that your python file name is script.py, You can create a batch file that goes like this:

python C:\Users\script.py 

And then call the batch file (script_runner.bat) from the ASP.NET program like this:

Process.Start('C:\Users.script_runner.bat');

Another possible solution is to use IronPython, which works very good with ASP.NET.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Yuval, maybe use IronPython is the best way for what I'm thinking to do.

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.