Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newly created venv not picked or listed in kernel picker #12133

Closed
rebornix opened this issue Nov 22, 2022 · 7 comments
Closed

Newly created venv not picked or listed in kernel picker #12133

rebornix opened this issue Nov 22, 2022 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel-picker

Comments

@rebornix
Copy link
Member

rebornix commented Nov 22, 2022

Type: Bug

  • Create an empty folder and open in VS Code

  • Create a dev container from the official conda template

  • Open the folder in dev container

  • Install Python and Jupyte prerelease

  • Switch kernel picker type to mru notebook.kernelPicker.type: "mru"

  • Open a notebook, click on the kernel picker

    • Select another kernel...
    • Local Python Environment
    • Create Python Environment
    • Venv
    image
    • Pick the conda interpreter

After long progress through notification, the creation of venv succeeds (.venv folder created, and Python finds it). But we didn't select this intepreter as kernel, and when going through the same steps, the venv is also not listed under Local Python Environments.

VS Code version: Code - Insiders 1.74.0-insider (fef85ea792f6627c83024d1df726ca729d8c9cb3, 2022-11-21T05:22:37.848Z)
OS version: Windows_NT x64 10.0.22623
Modes:

@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug notebook-kernel-picker labels Nov 22, 2022
@rebornix
Copy link
Member Author

Refresh fixes it though.

@rebornix rebornix added this to the November 2022 milestone Nov 22, 2022
@DonJayamanne
Copy link
Contributor

Refresh fixes it though.

Possible we're not getting an event indicating the new envs have been created.
Please could you try again with verbose logging, as this works for me at my end.

@rebornix rebornix mentioned this issue Nov 22, 2022
54 tasks
@rebornix
Copy link
Member Author

Before creation

Jupyter
Visual Studio Code - Insiders (1.74.0-insider, dev-container, desktop)
Jupyter Extension Version: 2022.11.1003271029.
Python Extension Version: 2022.18.2.
Workspace folder /workspaces/py-container2
info 02:05:57.692: ZMQ install verified.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 02:05:58.035: Old kernelSpecs (created by Jupyter Extension) stored in directory C:\Users\rebor\AppData\Roaming\jupyter\kernels\__old_vscode_kernelspecs
info 02:05:58.035: Old kernelSpecs (created by Jupyter Extension) stored in directory C:\Users\rebor\AppData\Roaming\jupyter\kernels\__old_vscode_kernelspecs
debug 02:05:58.040: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
info 02:05:58.043: LSP Notebooks experiment is enabled
debug 02:05:58.043: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:05:58.047: getCondaFile, Class name = k (started execution)
debug 02:05:58.048: getCondaVersion, Class name = k (started execution)
debug 02:05:58.048: getCondaVersionFromPython, Class name = k (started execution)
debug 02:05:58.086: getCondaFile, Class name = k, completed in 39ms, has a truthy return value
debug 02:05:58.086: getCondaVersion, Class name = k, completed in 38ms, has a truthy return value
debug 02:05:58.359: Found 4 saved URIs, [{"time":1669077367417,"serverId":"e5df1f762ae220d3a27762d23c58eee33460345b3be832d126a1e089d9759aa0","displayName":"http://localhost:8888/?token=a640050dba2754836cc00f4b6872f0e4db6cf9eb94ca2f5f","uri":"http://localhost:8888/?token=a640050dba2754836cc00f4b6872f0e4db6cf9eb94ca2f5f","isValidated":true},{"time":1662079159263,"serverId":"790f172860f9c6c36c54e446595a99cd0637ebcbcc53c88956e2c944836876e7","displayName":"http://localhost:46331/?token=15bd9a445c2a400d86e3d3070a2daa0a","uri":"http://localhost:46331/?token=15bd9a445c2a400d86e3d3070a2daa0a","isValidated":true},{"time":1662079085730,"serverId":"2199077a6e5934843ea4a5c2a3c580ba0f72480bf1744811ea31a4885dc876b2","displayName":"http://localhost:44891/?token=f831ab494d2449c0ba8c0c249b305f4c","uri":"http://localhost:44891/?token=f831ab494d2449c0ba8c0c249b305f4c","isValidated":true},{"time":1662078873642,"serverId":"19f5493a17eb849727304bc6d31512fa0ab1fa5aaf5073636878635355a73499","displayName":"Codespace rebornix-jungaretti-playground-pjrxq4w5w9hgpv","uri":"https://remote/?id=codespace&uriHandle=rebornix-jungaretti-playground-pjrxq4w5w9hgpv","isValidated":false}]
debug 02:05:58.360: UniversalRemoteKernelFinder: get from cache
debug 02:05:58.361: UniversalRemoteKernelFinder: get from cache
debug 02:05:58.362: UniversalRemoteKernelFinder: get from cache
info 02:05:58.363: Checking for server existence.
info 02:05:58.363: Checking for server existence.
info 02:05:58.363: Checking for server existence.
info 02:05:58.364: Checking for server usability.
info 02:05:58.364: Checking for server usability.
info 02:05:58.364: Checking for server usability.
info 02:05:58.364: Starting notebook server.
info 02:05:58.364: Starting notebook server.
info 02:05:58.364: Starting notebook server.
info 02:05:58.365: Connecting to server
info 02:05:58.365: Connecting to server
info 02:05:58.365: Connecting to server
info 02:05:58.366: Connecting to process server
info 02:05:58.366: Connecting server kernel http://localhost:8888/
Connecting to Jupyter server at http://localhost:8888/
info 02:05:58.366: Connecting to process server
info 02:05:58.366: Connecting server kernel http://localhost:46331/
Connecting to Jupyter server at http://localhost:46331/
info 02:05:58.367: Connecting to process server
info 02:05:58.367: Connecting server kernel http://localhost:44891/
Connecting to Jupyter server at http://localhost:44891/
info 02:05:58.367: Creating server with url : http://localhost:8888/
info 02:05:58.384: Creating server with url : http://localhost:46331/
info 02:05:58.384: Creating server with url : http://localhost:44891/
info 02:05:58.393: Connection complete server
info 02:05:58.393: Connection complete server
info 02:05:58.393: Connection complete server
info 02:05:58.393: Server started.
info 02:05:58.393: Server started.
info 02:05:58.393: Server started.
info 02:05:58.394: Creating server with url : http://localhost:8888/
info 02:05:58.394: Creating server with url : http://localhost:46331/
info 02:05:58.395: Creating server with url : http://localhost:44891/
debug 02:05:58.634: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
debug 02:05:58.645: Get Custom Env Variables, Class name = S, completed in 605ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:05:58.646: Get Jupyter Sub Paths, Class name = j, completed in 606ms, has a truthy return value, Arg 1: "", Arg 2: "kernels", Return Value: 
debug 02:05:58.647: Get Jupyter Kernel Paths, Class name = j, completed in 607ms, has a truthy return value, Arg 1: "", Return Value: 
debug 02:05:58.647: Get KernelSpec root path, Class name = j, completed in 607ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:05:58.668: Get Active Interpreter, Class name = x, completed in 625ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:58.669: Get Active Interpreter, Class name = x, completed in 35ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:58.670: interpreterPackages getPackageInformation, Class name = r (started execution), Arg 1: {"interpreter":{"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","external":"file:///opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
debug 02:05:58.670: Create activated Env, Class name = w (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","external":"file:///opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
debug 02:05:58.670: Getting activated env variables, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>, Arg 3: true
debug 02:05:58.670: Getting activated env variables impl, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:58.670: Getting activated env variables ourselves, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:58.670: getCondaEnvVariables, Class name = K (started execution)
debug 02:05:58.670: getCondaVersion, Class name = k (started execution)
debug 02:05:58.670: Got activation Env Vars without any caching. Key is /workspaces/py-container2_/opt/conda/bin/python
debug 02:05:58.670: Getting activated env variables from Python, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:58.670: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:05:58.671: getCondaVersion, Class name = k, completed in 1ms, has a truthy return value
debug 02:05:58.671: Get Interpreter details, Class name = x (started execution), Arg 1: "/opt/conda/bin/python"
debug 02:05:58.674: Get Custom Env Variables, Class name = S, completed in 4ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:05:58.674: Interpreter details for /opt/conda/bin/python from Python is {"internal":{"path":"/opt/conda/bin/python","id":"/opt/conda/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/opt/conda"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/opt/conda","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/opt/conda/bin/python"} and our mapping is {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:58.674: Get Interpreter details, Class name = x, completed in 3ms, has a truthy return value, Arg 1: "/opt/conda/bin/python"
debug 02:05:58.674: Create ProcessService, Class name = h (started execution), Arg 1: undefined
debug 02:05:58.674: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:05:58.675: Getting env activation commands, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:58.675: Getting activation commands for file:///opt/conda/bin/python
debug 02:05:58.675: Getting activation commands for file:///opt/conda/bin/python are cached.
debug 02:05:58.675: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:05:58.675: Getting env activation commands, Class name = K, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:58.676: Get Custom Env Variables, Class name = S, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:05:58.685: Not Searching for kernels as path does not exist, /usr/share/jupyter/kernels
debug 02:05:58.685: Not Searching for kernels as path does not exist, /usr/local/share/jupyter/kernels
debug 02:05:58.685: Not Searching for kernels as path does not exist, /home/vscode/.local/share/jupyter/kernels
error 02:05:58.706: Error fetching remote kernels: [FetchError: request to http://localhost:8888/api/kernels?1669082758398 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.706: Disposing session manager
debug 02:05:58.706: SessionManager - dispose contents manager
debug 02:05:58.706: ShutdownSessionAndConnection - dispose session manager
error 02:05:58.707: Error fetching remote kernels: [FetchError: request to http://localhost:46331/api/kernels?1669082758399 failed, reason: connect ECONNREFUSED 127.0.0.1:46331
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.707: Disposing session manager
debug 02:05:58.707: SessionManager - dispose contents manager
debug 02:05:58.707: ShutdownSessionAndConnection - dispose session manager
error 02:05:58.707: Error fetching remote kernels: [FetchError: request to http://localhost:44891/api/kernels?1669082758401 failed, reason: connect ECONNREFUSED 127.0.0.1:44891
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.707: Disposing session manager
debug 02:05:58.707: SessionManager - dispose contents manager
debug 02:05:58.707: ShutdownSessionAndConnection - dispose session manager
debug 02:05:58.734: Get Custom Env Variables, Class name = S, completed in 60ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:05:58.734: Create ProcessService, Class name = h, completed in 60ms, has a truthy return value, Arg 1: undefined
debug 02:05:58.734: Activation Commands received conda activate base for shell bash
debug 02:05:58.734: Has Custom Env Vars
debug 02:05:58.734: Activating Environment to capture Environment variables, conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py
debug 02:05:58.734: Execing shell command, Class name = f (started execution), Arg 1: "~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py", Arg 2: ""
debug 02:05:58.790: Finished disposing jupyter session manager
error 02:05:58.791: UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1669082758398 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.791: UniversalRemoteKernelFinder: Writing 0 remote kernel connection metadata to cache
error 02:05:58.792: SessionManager:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
	at e.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:171274)
	at dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:62918)
	at u.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:2008491)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async b.listKernelsFromConnection (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:1862509)]
debug 02:05:58.793: Finished disposing jupyter session manager
error 02:05:58.793: UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:46331/api/kernels?1669082758399 failed, reason: connect ECONNREFUSED 127.0.0.1:46331
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.793: UniversalRemoteKernelFinder: Writing 0 remote kernel connection metadata to cache
error 02:05:58.793: SessionManager:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
	at e.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:171274)
	at dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:62918)
	at u.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:2008491)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async b.listKernelsFromConnection (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:1862509)]
debug 02:05:58.794: Finished disposing jupyter session manager
error 02:05:58.794: UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:44891/api/kernels?1669082758401 failed, reason: connect ECONNREFUSED 127.0.0.1:44891
	at ClientRequest.<anonymous> (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:17:566135)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at processTicksAndRejections (node:internal/process/task_queues:83:21)]
debug 02:05:58.794: UniversalRemoteKernelFinder: Writing 0 remote kernel connection metadata to cache
error 02:05:58.794: SessionManager:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
	at e.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:171274)
	at dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:62918)
	at u.dispose (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:2008491)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async b.listKernelsFromConnection (/home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/out/extension.node.js:2:1862509)]
debug 02:05:59.237: Failed to get activated environment variables ourselves [Error: Command failed: conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



	at ChildProcess.exithandler (node:child_process:399:12)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py"
}
error 02:05:59.238: Execing shell command, Class name = f, completed in 503ms, has a falsy return value, Arg 1: "~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py", Arg 2: "" [Error: Command failed: conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



	at ChildProcess.exithandler (node:child_process:399:12)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py"
}
debug 02:05:59.238: getCondaEnvVariables, Class name = K, completed in 568ms, has a falsy return value
debug 02:05:59.239: getCondaEnvVariables and send telemetry took: 569ms
debug 02:05:59.239: Getting activated env variables ourselves, Class name = K, completed in 569ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:59.239: Got env vars ourselves /opt/conda/bin/python in 569ms with 0 variables
debug 02:05:59.239: Getting activated env variables impl, Class name = K, completed in 569ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:05:59.239: Getting activated env variables, Class name = K, completed in 569ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>, Arg 3: true
debug 02:05:59.239: Create ProcessService, Class name = h (started execution), Arg 1: undefined
debug 02:05:59.240: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:05:59.240: Cached data exists getEnvironmentVariables, <No Resource>
debug 02:05:59.240: Get Custom Env Variables, Class name = S, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:05:59.240: Create ProcessService, Class name = h, completed in 1ms, has a truthy return value, Arg 1: undefined
debug 02:05:59.240: Creating execution process, Class name = w, completed in 1ms, has a truthy return value, Arg 1: {"interpreter":{"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","external":"file:///opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}, Return Value: {}
debug 02:05:59.240: Create activated Env, Class name = w, completed in 570ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","external":"file:///opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
info 02:05:59.247: Process Execution: > /opt/conda/bin/python -m pip list
> /opt/conda/bin/python -m pip list
debug 02:05:59.520: getCondaVersionFromPython, Class name = k, completed in 1472ms, has a truthy return value
debug 02:05:59.583: Full interpreter list after refreshing (total 1534ms, resolve 595ms, refresh 939ms) is length: 2, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /opt/conda/bin/python:base:Conda:/opt/conda/bin/python:/opt/conda/bin/python
debug 02:05:59.584: Python environment for /opt/conda/bin/python is /opt/conda/bin/python from Python Extension API is {"internal":{"path":"/opt/conda/bin/python","id":"/opt/conda/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/opt/conda"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/opt/conda","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/opt/conda/bin/python"} and translated is {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:59.591: Python environment for /usr/bin/python3 is /usr/bin/python3 from Python Extension API is {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":9,"micro":2,"release":{"level":"final","serial":0},"sysVersion":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":9,"patch":2,"raw":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"}}
debug 02:05:59.591: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:05:59.592: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:05:59.594: Get Jupyter Kernel Paths, Class name = j, completed in 2ms, has a truthy return value, Arg 1: "", Return Value: 
debug 02:05:59.594: Get Jupyter Kernel Paths, Class name = j, completed in 2ms, has a truthy return value, Arg 1: "", Return Value: 
debug 02:05:59.594: Full interpreter list is length: 2, /opt/conda/bin/python:base:Conda:/opt/conda/bin/python, /usr/bin/python3::Unknown:/usr/bin/python3
debug 02:05:59.594: Get KernelSpec root path, Class name = j, completed in 2ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:05:59.594: Get KernelSpec root path, Class name = j, completed in 2ms, has a truthy return value, Arg 1: {"a":false,"b":{"j":false,"q":{"a":{"element":{"subscription":{}},"next":{},"prev":{}},"b":{"element":{"subscription":{}},"next":{},"prev":{}},"c":1}}}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:05:59.595: Found 2 cached controllers
debug 02:05:59.595: Creating 2 controllers
debug 02:05:59.596: Creating notebook controller for startUsingPythonInterpreter (id=.jvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe./opt/conda/python./opt/conda/python.-m#ipykernel_launcher) with name 'base (Python 3.9.12)'
debug 02:05:59.597: Creating notebook controller for startUsingPythonInterpreter (id=.jvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe./opt/conda/python./opt/conda/python.-m#ipykernel_launcher) with name 'base (Python 3.9.12)'
debug 02:05:59.598: Creating notebook controller for startUsingPythonInterpreter (id=.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher) with name 'Python 3.9.2'
debug 02:05:59.598: Creating notebook controller for startUsingPythonInterpreter (id=.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher) with name 'Python 3.9.2'
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.599: Found 2 cached controllers
debug 02:05:59.599: Creating 2 controllers
debug 02:05:59.600: Found 2 cached controllers
debug 02:05:59.600: Creating 2 controllers
debug 02:05:59.601: Get Active Interpreter, Class name = x, completed in 10ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:59.601: Get Active Interpreter, Class name = x, completed in 9ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
info 02:05:59.601: Preferred Remote kernel for /workspaces/py-container2/test.ipynb is undefined
debug 02:05:59.614: Loading kernelspec from /opt/conda/share/jupyter/kernels/python3/kernel.json for /opt/conda/bin/python
debug 02:05:59.619: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 0ms, has a truthy return value, , Return Value: <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:05:59.619: Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe', /opt/conda/bin/python
debug 02:05:59.620: Found 2 cached controllers
debug 02:05:59.620: Creating 2 controllers
debug 02:05:59.702: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2/test.ipynb"
debug 02:05:59.703: Get Active Interpreter, Class name = x, completed in 1ms, has a truthy return value, Arg 1: "/workspaces/py-container2/test.ipynb", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:05:59.703: Rank Kernels, Class name = p (started execution), Arg 1: "/workspaces/py-container2/test.ipynb", Arg 2: "", Arg 3: {"orig_nbformat":4,"language_info":{"name":"python"}}, Arg 4: <Uri:/opt/conda/bin/python>, Arg 5: "", Arg 6: undefined
info 02:05:59.703: Preferred Remote kernel for /workspaces/py-container2/test.ipynb is undefined
info 02:05:59.704: Find preferred kernel for /workspaces/py-container2/test.ipynb with metadata {"orig_nbformat":4,"language_info":{"name":"python"}} & preferred interpreter /opt/conda/bin/python
debug 02:05:59.705: Rank Kernels, Class name = p, completed in 2ms, has a truthy return value, Arg 1: "/workspaces/py-container2/test.ipynb", Arg 2: "", Arg 3: {"orig_nbformat":4,"language_info":{"name":"python"}}, Arg 4: <Uri:/opt/conda/bin/python>, Arg 5: "", Arg 6: undefined
info 02:05:59.705: Preferred Remote kernel for /workspaces/py-container2/test.ipynb is undefined
info 02:05:59.705: Preferred kernel .jvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe./opt/conda/python./opt/conda/python.-m#ipykernel_launcher is exact match or top match for non python kernels, (false, [object Object], false, false)
info 02:05:59.707: PreferredConnection: .jvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe./opt/conda/python./opt/conda/python.-m#ipykernel_launcher found for NotebookDocument: /workspaces/py-container2/test.ipynb
debug 02:05:59.707: TargetController found ID: startUsingPythonInterpreter:.jvsc74a57bd0d4d1e4263499bec80672ea0156c357c1ee493ec2b1c70f0acce89fc37c4a6abe./opt/conda/python./opt/conda/python.-m#ipykernel_launcher for document /workspaces/py-container2/test.ipynb
debug 02:05:59.741: Compute Preferred Controller, Class name = k, completed in 37ms, has a truthy return value, Arg 1: <Uri:/workspaces/py-container2/test.ipynb>, Arg 2: undefined, Arg 3: {"a":false,"b":{"j":false,"q":{"a":{},"b":{},"c":0}}}, Return Value: <Return value cannot be serialized for logging>
debug 02:06:00.023: _jupyterPythonPathFunction: "file:///workspaces/py-container2" is not a notebook
debug 02:06:00.024: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2/test.ipynb"
debug 02:06:00.025: Get Active Interpreter, Class name = x, completed in 1ms, has a truthy return value, Arg 1: "/workspaces/py-container2/test.ipynb", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:06:00.026: _jupyterPythonPathFunction: Giving Pylance "/opt/conda/bin/python" as python path for "file:///workspaces/py-container2/test.ipynb"
debug 02:06:00.137: interpreterPackages getPackageInformation, Class name = r, completed in 1467ms, has a falsy return value, Arg 1: {"interpreter":{"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","external":"file:///opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
info 02:06:01.063: Got env vars with python /opt/conda/bin/python, with env var count 40 and custom env var count 34 in 2393ms
debug 02:06:01.063: Getting activated env variables from Python, Class name = K, completed in 2393ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/opt/conda/bin/python>
debug 02:06:01.063: Got env vars with python /opt/conda/bin/python in 2393ms with 40 variables

Python
Experiment 'pythonPromptNewToolsExtNonExistantcf' is active
[DEBUG 2022-10-22 2:5:58.415]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:58.417]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:58.417]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:58.427]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:58.427]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:58.442]: Waiting for test server to start...
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
[INFO 2022-10-22 2:5:58.448]: [
  'Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[INFO 2022-10-22 2:5:58.449]: [
  'Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[INFO 2022-10-22 2:5:58.643]: [
  'Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-10-22 2:5:58.645]: Searching for conda.
[DEBUG 2022-10-22 2:5:58.646]: Probing conda binary: conda
[DEBUG 2022-10-22 2:5:58.665]: Test server started.
[DEBUG 2022-10-22 2:5:58.665]: Testing: Setting up watcher for /workspaces/py-container2
[DEBUG 2022-10-22 2:5:58.666]: Searching for workspace virtual envs in: /workspaces/py-container2
[INFO 2022-10-22 2:5:58.666]: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1669073868097,"mtime":1617624048000},"display":"Python 3.9.2 64-bit","version":{"major":3,"minor":9,"micro":2,"release":{"level":"final","serial":0},"sysVersion":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.9.2 64-bit"},{"name":"base","location":"/opt/conda","kind":"virt-conda","executable":{"filename":"/opt/conda/bin/python","sysPrefix":"/opt/conda","ctime":1669074047977,"mtime":1655134608000},"display":"Python 3.9.12 ('base')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/opt/conda/bin/python","detailedDisplayName":"Python 3.9.12 ('base': conda)"}]
> conda info --json
[DEBUG 2022-10-22 2:5:58.686]: Searching for workspace virtual envs in: /workspaces/py-container2
Python interpreter path: /opt/conda/bin/python
[INFO 2022-10-22 2:5:58.800]: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1669073868097,"mtime":1617624048000},"display":"Python 3.9.2 64-bit","version":{"major":3,"minor":9,"micro":2,"release":{"level":"final","serial":0},"sysVersion":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.9.2 64-bit"},{"name":"base","location":"/opt/conda","kind":"virt-conda","executable":{"filename":"/opt/conda/bin/python","sysPrefix":"/opt/conda","ctime":1669074047977,"mtime":1655134608000},"display":"Python 3.9.12 ('base')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/opt/conda/bin/python","detailedDisplayName":"Python 3.9.12 ('base': conda)"}]
[INFO 2022-10-22 2:5:58.814]: Found: /usr/bin/python3 --> /usr/bin/python3.9
[INFO 2022-10-22 2:5:58.814]: Found: /usr/bin/python3.9 --> /usr/bin/python3.9
[INFO 2022-10-22 2:5:58.828]: Found: /opt/conda/bin/python --> /opt/conda/bin/python3.9
[INFO 2022-10-22 2:5:58.828]: Found: /opt/conda/bin/python3 --> /opt/conda/bin/python3.9
[INFO 2022-10-22 2:5:58.829]: Found: /opt/conda/bin/python3.9 --> /opt/conda/bin/python3.9
[DEBUG 2022-10-22 2:5:58.837]: Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange
[DEBUG 2022-10-22 2:5:58.844]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:5:58.844]: Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.846]: Extension ms-toolsai.jupyter accessed onDidChangeEnvironments
[DEBUG 2022-10-22 2:5:58.847]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[DEBUG 2022-10-22 2:5:58.878]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:58.881]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:58.881]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.886]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:58.892]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:5:58.893]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:5:58.894]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:58.896]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:5:58.896]: Extension ms-python.isort accessed onDidChangeActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.896]: Extension ms-python.isort accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.896]: Extension ms-python.isort accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:58.897]: Extension ms-python.isort accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.897]: Extension ms-python.isort accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:58.897]: Extension ms-python.isort accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:58.902]: Extension ms-python.isort accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:58.902]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[INFO 2022-10-22 2:5:58.928]: Found interpreter for /usr/bin/python3,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[DEBUG 2022-10-22 2:5:59.519]: conda info --json: {
  "GID": 1000,
  "UID": 1000,
  "active_prefix": null,
  "active_prefix_name": null,
  "av_data_dir": "/opt/conda/etc/conda",
  "av_metadata_url_base": null,
  "channels": [
    "https://repo.anaconda.com/pkgs/main/linux-64",
    "https://repo.anaconda.com/pkgs/main/noarch",
    "https://repo.anaconda.com/pkgs/r/linux-64",
    "https://repo.anaconda.com/pkgs/r/noarch"
  ],
  "conda_build_version": "3.21.8",
  "conda_env_version": "4.12.0",
  "conda_location": "/opt/conda/lib/python3.9/site-packages/conda",
  "conda_prefix": "/opt/conda",
  "conda_private": false,
  "conda_shlvl": 0,
  "conda_version": "4.12.0",
  "config_files": [],
  "default_prefix": "/opt/conda",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_EXE": "/opt/conda/bin/conda",
    "CONDA_PYTHON_EXE": "/opt/conda/bin/python",
    "CONDA_ROOT": "/opt/conda",
    "CONDA_SHLVL": "0",
    "CURL_CA_BUNDLE": "<not set>",
    "PATH": "/vscode/vscode-server-insiders/bin/linux-x64/fef85ea792f6627c83024d1df726ca729d8c9cb3-insider/bin/remote-cli:/opt/conda/condabin:/usr/local/share/nvm/current/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/opt/conda"
  ],
  "envs_dirs": [
    "/opt/conda/envs",
    "/home/vscode/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/opt/conda/pkgs",
    "/home/vscode/.conda/pkgs"
  ],
  "platform": "linux-64",
  "python_version": "3.9.12.final.0",
  "rc_path": "/home/vscode/.condarc",
  "requests_version": "2.27.1",
  "root_prefix": "/opt/conda",
  "root_writable": true,
  "site_dirs": [],
  "sys.executable": "/opt/conda/bin/python",
  "sys.prefix": "/opt/conda",
  "sys.version": "3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]",
  "sys_rc_path": "/opt/conda/.condarc",
  "user_agent": "conda/4.12.0 requests/2.27.1 CPython/3.9.12 Linux/5.10.16.3-microsoft-standard-WSL2 debian/11 glibc/2.31",
  "user_rc_path": "/home/vscode/.condarc",
  "virtual_pkgs": [
    [
      "__linux",
      "5.10.16.3",
      "0"
    ],
    [
      "__glibc",
      "2.31",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ],
    [
      "__archspec",
      "1",
      "x86_64"
    ]
  ]
}

[DEBUG 2022-10-22 2:5:59.519]: Found conda via filesystem probing: conda
[DEBUG 2022-10-22 2:5:59.519]: Searching for conda environments using conda
[DEBUG 2022-10-22 2:5:59.519]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoImpl-Args="conda"
[DEBUG 2022-10-22 2:5:59.519]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-10-22 2:5:59.520]: Looking into conda env for executable: {"prefix":"/opt/conda","name":"base"}
[DEBUG 2022-10-22 2:5:59.520]: Has Custom Env Vars
[DEBUG 2022-10-22 2:5:59.520]: Activating Environment to capture Environment variables, conda run -n base --no-capture-output python /home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py /home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/printEnvVariables.py
> conda run -n base --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/printEnvVariables.py
[DEBUG 2022-10-22 2:5:59.530]: Found executable within conda env {"prefix":"/opt/conda","name":"base"}
[DEBUG 2022-10-22 2:5:59.530]: Found conda executable: /opt/conda/bin/python
> /opt/conda/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[INFO 2022-10-22 2:5:59.576]: Found interpreter for /opt/conda/bin/python,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[INFO 2022-10-22 2:5:59.577]: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1669073868097,"mtime":1617624048000},"display":"Python 3.9.2 64-bit","version":{"major":3,"minor":9,"micro":2,"release":{"level":"final","serial":0},"sysVersion":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.9.2 64-bit"},{"name":"base","location":"/opt/conda","kind":"virt-conda","executable":{"filename":"/opt/conda/bin/python","sysPrefix":"/opt/conda","ctime":1669074047977,"mtime":1655134608000},"display":"Python 3.9.12 ('base')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/opt/conda/bin/python","detailedDisplayName":"Python 3.9.12 ('base': conda)"}]
[INFO 2022-10-22 2:5:59.577]: [
  'Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-10-22 2:5:59.578]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.578]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.578]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.579]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.579]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.580]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.580]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:5:59.701]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:5:59.743]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.745]: Extension ms-toolsai.jupyter accessed refreshEnvironments
[DEBUG 2022-10-22 2:5:59.745]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.746]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.747]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:59.747]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:59.748]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.749]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.751]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:59.751]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:59.752]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:59.754]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:5:59.754]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:5:59.766]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:5:59.767]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[INFO 2022-10-22 2:6:0.10]: [
  'Starting language server, Class name = d, completed in 403ms, has a falsy return value, , Return Value: undefined'
]
Starting Pylance language server.
[DEBUG 2022-10-22 2:6:0.16]: [object Object]. Shell identified as undefined 
[DEBUG 2022-10-22 2:6:0.16]: Shell path '/bin/bash', base path '/bin/bash'
[DEBUG 2022-10-22 2:6:0.16]: Shell path identified as shell 'bash'
[DEBUG 2022-10-22 2:6:0.16]: Terminal shell path '/bin/bash' identified as shell 'bash'
[DEBUG 2022-10-22 2:6:0.16]: [object Object]. Shell identified as bash 
[DEBUG 2022-10-22 2:6:0.16]: Shell identified as 'bash'
[DEBUG 2022-10-22 2:6:0.17]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-10-22 2:6:0.17]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:6:0.17]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:6:0.17]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/workspaces/py-container2"-Arg-Separator-undefined
Jupyter provided interpreter path override: /opt/conda/bin/python
[DEBUG 2022-10-22 2:6:0.46]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:6:0.47]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[INFO 2022-10-22 2:6:1.62]: [
  'parseEnvironmentOutput, Class name = O, completed in 0ms, has a truthy return value'
]
[INFO 2022-10-22 2:6:1.62]: [
  'getActivatedEnvironmentVariables, Class name = O, completed in 2391ms, has a truthy return value, Arg 1: undefined, Arg 2: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":"/opt/conda","displayPath":{"$mid":1,"fsPath":"/opt/conda","path":"/opt/conda","scheme":"file"},"envName":"base","displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \\n[GCC 7.5.0]"},"path":"/opt/conda/bin/python"}, Arg 3: false'
]
[DEBUG 2022-10-22 2:6:2.835]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:6:3.569]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:6:10.140]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:6:10.513]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:7:38.305]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:7:38.683]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"

** Creation **

After the creation, I got a notifcation from Python

image

Jupyter
debug 02:08:40.679: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2/test.ipynb"
debug 02:08:40.685: Get Active Interpreter, Class name = x, completed in 6ms, has a truthy return value, Arg 1: "/workspaces/py-container2/test.ipynb", Return Value: {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.325: Get Interpreter details, Class name = x (started execution), Arg 1: <Uri:/workspaces/py-container2/.venv/bin/python>
warn 02:10:55.326: No interpreter with path /workspaces/py-container2/.venv/bin/python found in Python API, will convert Uri path to string as Id file:///workspaces/py-container2/.venv/bin/python
debug 02:10:55.387: Detected change in Active Python environment via Python API
debug 02:10:55.388: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:10:55.388: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
debug 02:10:55.390: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:10:55.390: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2"
debug 02:10:55.394: Get Jupyter Kernel Paths, Class name = j, completed in 4ms, has a truthy return value, Arg 1: "", Return Value: 
debug 02:10:55.394: Get Jupyter Kernel Paths, Class name = j, completed in 4ms, has a truthy return value, Arg 1: "", Return Value: 
debug 02:10:55.395: Get KernelSpec root path, Class name = j, completed in 5ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:10:55.396: Get KernelSpec root path, Class name = j, completed in 6ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/home/vscode/.local/share/jupyter/kernels>
debug 02:10:55.426: _jupyterPythonPathFunction: "file:///workspaces/py-container2" is not a notebook
debug 02:10:55.432: Get Active Interpreter, Class name = x (started execution), Arg 1: "/workspaces/py-container2/test.ipynb"
debug 02:10:55.475: Detected change in Python environments via Python API
debug 02:10:55.479: Full interpreter list after refreshing (total 1ms, resolve 1ms, refresh 0ms) is length: 3, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /opt/conda/bin/python:base:Conda:/opt/conda/bin/python:/opt/conda/bin/python, /workspaces/py-container2/.venv/bin/python:.venv:Venv:/workspaces/py-container2/.venv/bin/python:/workspaces/py-container2/.venv/bin/python
debug 02:10:55.480: Get Interpreter details, Class name = x, completed in 155ms, has a truthy return value, Arg 1: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.481: Python environment for /usr/bin/python3 is /usr/bin/python3 from Python Extension API is {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":9,"micro":2,"release":{"level":"final","serial":0},"sysVersion":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":9,"patch":2,"raw":"3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]"}}
debug 02:10:55.481: Python environment for /opt/conda/bin/python is /opt/conda/bin/python from Python Extension API is {"internal":{"path":"/opt/conda/bin/python","id":"/opt/conda/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/opt/conda"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/opt/conda","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/opt/conda/bin/python"} and translated is {"id":"/opt/conda/bin/python","sysPrefix":"/opt/conda","envPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"displayPath":{"$mid":1,"path":"/opt/conda","scheme":"file"},"envName":"base","uri":{"$mid":1,"fsPath":"/opt/conda/bin/python","path":"/opt/conda/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.481: Python environment for /workspaces/py-container2/.venv/bin/python is /workspaces/py-container2/.venv/bin/python from Python Extension API is {"internal":{"path":"/workspaces/py-container2/.venv/bin/python","id":"/workspaces/py-container2/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/workspaces/py-container2/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/workspaces/py-container2","external":"file:///workspaces/py-container2","path":"/workspaces/py-container2","scheme":"file"},"name":"py-container2","index":0}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Venv"]},"id":"/workspaces/py-container2/.venv/bin/python"} and translated is {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.481: Full interpreter list is length: 3, /usr/bin/python3::Unknown:/usr/bin/python3, /opt/conda/bin/python:base:Conda:/opt/conda/bin/python, /workspaces/py-container2/.venv/bin/python:.venv:Venv:/workspaces/py-container2/.venv/bin/python
debug 02:10:55.517: Get Active Interpreter, Class name = x, completed in 127ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.524: Get Active Interpreter, Class name = x, completed in 136ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.526: Get Active Interpreter, Class name = x, completed in 135ms, has a truthy return value, Arg 1: "/workspaces/py-container2", Return Value: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.537: Found 2 cached controllers
debug 02:10:55.537: Creating 2 controllers
debug 02:10:55.552: Get Active Interpreter, Class name = x, completed in 164ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.552: interpreterPackages getPackageInformation, Class name = r (started execution), Arg 1: {"interpreter":{"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","external":"file:///workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
debug 02:10:55.553: Create activated Env, Class name = w (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","external":"file:///workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
debug 02:10:55.553: Getting activated env variables, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>, Arg 3: true
debug 02:10:55.553: Getting activated env variables impl, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.553: Getting activated env variables ourselves, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.553: Get Interpreter details, Class name = x (started execution), Arg 1: "/workspaces/py-container2/.venv/bin/python"
debug 02:10:55.553: Got activation Env Vars without any caching. Key is /workspaces/py-container2_/workspaces/py-container2/.venv/bin/python
debug 02:10:55.553: Getting activated env variables from Python, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.553: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:10:55.558: Get Custom Env Variables, Class name = S, completed in 5ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:10:55.558: Interpreter details for /workspaces/py-container2/.venv/bin/python from Python is {"internal":{"path":"/workspaces/py-container2/.venv/bin/python","id":"/workspaces/py-container2/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/workspaces/py-container2/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/workspaces/py-container2","external":"file:///workspaces/py-container2","path":"/workspaces/py-container2","scheme":"file"},"name":"py-container2","index":0}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Venv"]},"id":"/workspaces/py-container2/.venv/bin/python"} and our mapping is {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.558: Get Interpreter details, Class name = x, completed in 5ms, has a truthy return value, Arg 1: "/workspaces/py-container2/.venv/bin/python"
debug 02:10:55.558: Create ProcessService, Class name = h (started execution), Arg 1: undefined
debug 02:10:55.558: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:10:55.559: Getting env activation commands, Class name = K (started execution), Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.559: Getting activation commands for file:///workspaces/py-container2/.venv/bin/python
debug 02:10:55.559: Getting activation commands for file:///workspaces/py-container2/.venv/bin/python are not cached. May take a while.
debug 02:10:55.559: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:10:55.560: Get Custom Env Variables, Class name = S, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 02:10:55.585: Get Custom Env Variables, Class name = S, completed in 27ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 02:10:55.585: Create ProcessService, Class name = h, completed in 27ms, has a truthy return value, Arg 1: undefined
debug 02:10:55.661: Get Active Interpreter, Class name = x, completed in 229ms, has a truthy return value, Arg 1: "/workspaces/py-container2/test.ipynb", Return Value: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 02:10:55.661: _jupyterPythonPathFunction: Giving Pylance "/workspaces/py-container2/.venv/bin/python" as python path for "file:///workspaces/py-container2/test.ipynb"
debug 02:10:55.695: Activation Commands received source /workspaces/py-container2/.venv/bin/activate for shell bash
debug 02:10:55.700: Getting env activation commands, Class name = K, completed in 141ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.700: Activation Commands received source /workspaces/py-container2/.venv/bin/activate for shell bash
debug 02:10:55.701: Has Custom Env Vars
debug 02:10:55.701: Activating Environment to capture Environment variables, . /workspaces/py-container2/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py
debug 02:10:55.701: Execing shell command, Class name = f (started execution), Arg 1: "~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py", Arg 2: ""
debug 02:10:55.765: Execing shell command, Class name = f, completed in 64ms, has a truthy return value, Arg 1: "~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.11.1003271029/pythonFiles/printEnvVariables.py", Arg 2: ""
debug 02:10:55.765: parseEnvironmentOutput, Class name = K, completed in 0ms, has a truthy return value
debug 02:10:55.767: Getting activated env variables ourselves, Class name = K, completed in 214ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.767: Got env vars ourselves /workspaces/py-container2/.venv/bin/python in 214ms with 38 variables
debug 02:10:55.767: Getting activated env variables impl, Class name = K, completed in 214ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.768: Getting activated env variables, Class name = K, completed in 215ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>, Arg 3: true
debug 02:10:55.768: Create activated Env, Class name = w, completed in 215ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv","path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv","path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","external":"file:///workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}
info 02:10:55.776: Process Execution: > /workspaces/py-container2/.venv/bin/python -m pip list
> /workspaces/py-container2/.venv/bin/python -m pip list
info 02:10:55.782: Got env vars with python /workspaces/py-container2/.venv/bin/python, with env var count 38 and custom env var count 34 in 229ms
debug 02:10:55.783: Getting activated env variables from Python, Class name = K, completed in 230ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/workspaces/py-container2/.venv/bin/python>
debug 02:10:55.783: Got env vars with python /workspaces/py-container2/.venv/bin/python in 230ms with 38 variables
debug 02:11:02.034: interpreterPackages getPackageInformation, Class name = r, completed in 6482ms, has a falsy return value, Arg 1: {"interpreter":{"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv","path":"/workspaces/py-container2/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv","path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv/bin/python","external":"file:///workspaces/py-container2/.venv/bin/python","path":"/workspaces/py-container2/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}}

Python
[DEBUG 2022-10-22 2:7:56.689]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:8:40.723]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:8:40.724]: Extension ms-toolsai.jupyter accessed resolveEnvironment
Running Env creation script:  [
  '/opt/conda/bin/python',
  '/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/create_venv.py',
  '--git-ignore',
  '--install'
]
Running: /opt/conda/bin/python -m venv .venv

CREATED_VENV:/workspaces/py-container2/.venv/bin/python

Creating: /workspaces/py-container2/.venv/.gitignore

Running: /workspaces/py-container2/.venv/bin/python -m pip install --upgrade pip

Requirement already satisfied: pip in ./.venv/lib/python3.9/site-packages (22.0.4)

Collecting pip

  Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 12.5 MB/s eta 0:00:00


Installing collected packages: pip

  Attempting uninstall: pip

    Found existing installation: pip 22.0.4

    Uninstalling pip-22.0.4:

      Successfully uninstalled pip-22.0.4

[DEBUG 2022-10-22 2:10:24.437]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:10:31.473]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
[DEBUG 2022-10-22 2:10:32.360]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/opt/conda/bin/python"
Successfully installed pip-22.3.1

[DEBUG 2022-10-22 2:10:55.324]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
> ./.venv/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[DEBUG 2022-10-22 2:10:55.375]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.375]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.378]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.378]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.380]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.380]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.385]: Testing: Triggered refresh due to interpreter change.
[DEBUG 2022-10-22 2:10:55.386]: Testing: Clearing all discovered tests
[DEBUG 2022-10-22 2:10:55.386]: Testing: Forcing test data refresh
[DEBUG 2022-10-22 2:10:55.386]: Testing: Refreshing all test data
[DEBUG 2022-10-22 2:10:55.395]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.395]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/workspaces/py-container2"-Arg-Separator-undefined
[DEBUG 2022-10-22 2:10:55.399]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.400]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.451]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.452]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.458]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.463]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.464]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.465]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.468]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.469]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[INFO 2022-10-22 2:10:55.473]: Found interpreter for /workspaces/py-container2/.venv/bin/python,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/get_output_via_markers.py,/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/interpreterInfo.py
[DEBUG 2022-10-22 2:10:55.489]: Extension ms-python.isort accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.489]: Extension ms-python.isort accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.491]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.492]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.562]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.563]: Extension ms-toolsai.jupyter accessed refreshEnvironments
[DEBUG 2022-10-22 2:10:55.577]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.577]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.579]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.580]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.581]: Extension ms-toolsai.jupyter accessed resolveEnvironment
Python interpreter path: ./.venv/bin/python
[DEBUG 2022-10-22 2:10:55.618]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.618]: Extension ms-toolsai.jupyter accessed known
Jupyter provided interpreter path override: /workspaces/py-container2/.venv/bin/python
[DEBUG 2022-10-22 2:10:55.683]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:10:55.688]: Extension ms-toolsai.jupyter accessed known
[DEBUG 2022-10-22 2:10:55.690]: Extension ms-toolsai.jupyter accessed resolveEnvironment
[DEBUG 2022-10-22 2:10:55.691]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:10:55.694]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables
[DEBUG 2022-10-22 2:10:55.695]: Activation Commands received source /workspaces/py-container2/.venv/bin/activate for shell bash
[DEBUG 2022-10-22 2:10:55.695]: Has Custom Env Vars
[DEBUG 2022-10-22 2:10:55.695]: Activating Environment to capture Environment variables, . /workspaces/py-container2/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/printEnvVariables.py
> . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server-insiders/extensions/ms-python.python-2022.18.2/pythonFiles/printEnvVariables.py
[DEBUG 2022-10-22 2:10:55.744]: Extension ms-python.isort accessed getActiveEnvironmentPath
[DEBUG 2022-10-22 2:10:55.744]: Extension ms-python.isort accessed resolveEnvironment
[INFO 2022-10-22 2:10:55.777]: [
  'parseEnvironmentOutput, Class name = O, completed in 1ms, has a truthy return value'
]
[INFO 2022-10-22 2:10:55.781]: [
  'getActivatedEnvironmentVariables, Class name = O, completed in 227ms, has a truthy return value, Arg 1: undefined, Arg 2: {"id":"/workspaces/py-container2/.venv/bin/python","sysPrefix":"/workspaces/py-container2/.venv","envPath":"/workspaces/py-container2/.venv","displayPath":{"$mid":1,"fsPath":"/workspaces/py-container2/.venv","path":"/workspaces/py-container2/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \\n[GCC 7.5.0]"},"path":"/workspaces/py-container2/.venv/bin/python"}, Arg 3: false'
]
[DEBUG 2022-10-22 2:12:16.667]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/workspaces/py-container2/.venv/bin/python"
[DEBUG 2022-10-22 2:12:17.209]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="/workspaces/py-container2/.venv/bin/python"

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Nov 22, 2022

Open a notebook, click on the kernel picker
Select another kernel...
Local Python Environment
Create Python Environment
Venv

@rebornix I belive you didn't use the recommended python.
You must have used Conda to create the .venv. Because the latter doesn't work for me. It fails to create a .venv (Python extension fails at this point)

Please note, when using conda, the recommendation is to create conda envs. creating virtual Envs from conda environments don't work too well.

I have tried this and it works for me.
Will submit a PR to add more logging to see where we're not getting some messages or the like.

@rebornix
Copy link
Member Author

@DonJayamanne you are right, I was using Conda to create .venv and I was not picking the recommended python interpreter:

For venv option in Create Python Environment, currently it doesn't work at all, even though it's an official Python/Conda dev container.

@rebornix
Copy link
Member Author

@DonJayamanne despite the fact that I might be using the wrong interpreter, the venv was created, showed up in the Python interpreter, can show up if we refresh our kernel list, isn't this still a bug that we are not picking the new python environment?

@DonJayamanne
Copy link
Contributor

this still a bug that we are not picking the new python environment?

yes yes, agreed
please could you try this again, ive added more logging

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster verification-needed Verification of issue is requested labels Nov 29, 2022
@roblourens roblourens removed the verification-needed Verification of issue is requested label Jan 24, 2023
@rzhao271 rzhao271 removed this from the January 2023 milestone Jan 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel-picker
Projects
None yet
Development

No branches or pull requests

4 participants