diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ac937fbe82e..2c877d964761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,8 @@ ([#9701](https://github.com/Microsoft/vscode-python/issues/9701)) ### Fixes +1. add --ip=127.0.0.1 argument of jupyter server when running in k8s container + ([#9976](https://github.com/Microsoft/vscode-python/issues/9976)) 1. Correct the server and kernel text for when not connected to a server. ([#9933](https://github.com/Microsoft/vscode-python/issues/9933)) 1. Make sure to clear variable list on restart kernel. diff --git a/src/client/datascience/jupyter/notebookStarter.ts b/src/client/datascience/jupyter/notebookStarter.ts index 3cf3ddad5727..66f98d28fcd1 100644 --- a/src/client/datascience/jupyter/notebookStarter.ts +++ b/src/client/datascience/jupyter/notebookStarter.ts @@ -211,7 +211,7 @@ export class NotebookStarter implements Disposable { // Check for a docker situation. try { const cgroup = await this.fileSystem.readFile('/proc/self/cgroup').catch(() => ''); - if (!cgroup.includes('docker')) { + if (!cgroup.includes('docker') && !cgroup.includes('kubepods')) { return args; } // We definitely need an ip address.