Calling Python from C## Using Pythonnet from C## This allows to call python from C# in-process. Calling the socket server from C## This is the preferred method. It is also used internally by MS Excel XlNet addin.