We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f193678 commit 15475c7Copy full SHA for 15475c7
src/interpreters/python.ts
@@ -1,6 +1,7 @@
1
import { createConnection, Socket } from "net";
2
import { spawn, ChildProcess } from 'child_process';
3
import { InterpreterProvider, InterpreterResult } from './interpreters';
4
+import { hostname } from 'os';
5
6
/**
7
* The PythonInterpreterProvider establishes a connection to a remote Python 3
@@ -48,7 +49,7 @@ export class PythonInterpreterProvider implements InterpreterProvider {
48
49
if (data.includes("Server listening on")) {
50
setTimeout(() => {
51
console.log('Python REPL is ready...');
- this.connection = createConnection({ port: this.port }, () => {
52
+ this.connection = createConnection({ port: this.port, host: hostname()}, () => {
53
resolve();
54
});
55
0 commit comments