예제 #1
0
        public static Process startCPythonShell(DataReceivedEventHandler dataReceivedCallBack)
        {
            var cpythonShell = new CPythonShell();

            cpythonShell.startCPythonShell(dataReceivedCallBack);
            return(cpythonShell.cpythonProcess);
        }
예제 #2
0
        // if we pass a callback for logging we need to start a python shell
        public static Process executePythonFile(string fileToExecute, DataReceivedEventHandler dataReceivedCallBack)
        {
            var cpythonShell = new CPythonShell();

            cpythonShell.startCPythonShell(dataReceivedCallBack, fileToExecute);
            return(cpythonShell.cpythonProcess);
        }
 public static Process startCPythonShell(DataReceivedEventHandler dataReceivedCallBack)
 {
     var cpythonShell = new CPythonShell();
     cpythonShell.startCPythonShell(dataReceivedCallBack);
     return cpythonShell.cpythonProcess;
 }
 // if we pass a callback for logging we need to start a python shell
 public static Process executePythonFile(string fileToExecute, DataReceivedEventHandler dataReceivedCallBack)
 {
     var cpythonShell = new CPythonShell();
     cpythonShell.startCPythonShell(dataReceivedCallBack, fileToExecute);
     return cpythonShell.cpythonProcess;
 }