microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 293 forks source link

Fails to run Kernel in Python venv created using PyEnv #12542

Closed justmars closed 1 year ago

justmars commented 1 year ago

Re: issue described under #12439

Hi @DonJayamanne , I tried with the new patch but now getting a kernelspec error, the modal prompt stating:

Running cells with '.venv' requires the kernelspec package.

And in the notebook cell:

Screenshot 2023-01-12 at 11 25 39 AM

Environment

VS Code version: Version: 1.75.0-insider (Universal Jupyter Extension version: v2023.1.2000131034 Python Extension version: v2023.1.10111008 OS (Windows | Mac | Linux distro) and version: Mac Python and/or Anaconda version: Python 3.11.1 Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv Jupyter server running: ?

Steps to reproduce

mkdir nb && code nb
python3 -m venv .venv
source .venv/bin/activate
python -m pip install ipykernel notebook jupyter
echo $PATH | tr ':' '\n'

In case the path ENV is helpful:

/Users/mv/Code/nb/.venv/bin
/Users/mv/.pyenv/shims
/Users/mv/.pyenv
/Users/mv/.local/bin
/opt/homebrew/opt/sqlite/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Library/Apple/usr/bin
/Applications/Postgres.app/Contents/Versions/latest/bin
/Users/mv/.pyenv
/Users/mv/.local/bin
/opt/homebrew/opt/sqlite/bin
/opt/homebrew/bin
/opt/homebrew/sbin

Jupyter Output Logs

Jupyter Output ```console debug 15:15:25.923: VSCodeNotebookController::handleExecution, Class name = Ov (started execution) debug 15:15:25.924: Execute Cell 0 /Users/mv/Code/nb/nb.ipynb debug 15:15:25.924: start the kernel, options.disableUI=false for /Users/mv/Code/nb/nb.ipynb debug 15:15:25.925: Start Jupyter Session in kernel.ts with disableUI = false info 15:15:25.925: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (Python Path: /Users/mv/Code/nb/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]) for '/Users/mv/Code/nb/nb.ipynb' (disableUI=false) info 15:15:25.925: Checking for server existence. debug 15:15:25.925: Checking for server usability. debug 15:15:25.926: Server not usable (should ask for install now) debug 15:15:25.926: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 15:15:25.926: Get Active Interpreter, Class name = Ss, completed in 0ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 15:15:25.926: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 15:15:25.926: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:25.926: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.926: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.926: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:25.926: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 15:15:25.926: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:25.926: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.926: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.926: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:25.927: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:25.927: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:25.927: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:25.927: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:25.927: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.927: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:25.927: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.927: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:25.927: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.927: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:25.928: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:25.928: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:25.928: Create activated Env, Class name = mc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 15:15:25.928: Process Execution: > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 15:15:25.928: Create activated Env, Class name = mc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 15:15:25.929: Process Execution: > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 15:15:25.950: Checking if product is installed, Class name = nu, completed in 24ms, has a truthy return value, Arg 1: 18, Arg 2: undefined, Return Value: true debug 15:15:26.062: Checking if product is installed, Class name = nu, completed in 136ms, has a truthy return value, Arg 1: 20, Arg 2: undefined, Return Value: true debug 15:15:26.062: Create activated Env, Class name = mc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 15:15:26.062: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.062: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.062: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.062: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.063: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.063: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:26.063: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.063: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:26.063: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.063: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.063: Create activated Env, Class name = mc, completed in 1ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 15:15:26.064: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version debug 15:15:26.347: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 15:15:26.347: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: undefined debug 15:15:26.347: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.347: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.347: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.347: Get Custom Env Variables, Class name = Tc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.347: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 0ms debug 15:15:26.347: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.347: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 49 variables debug 15:15:26.348: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.348: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: undefined debug 15:15:26.348: Create activated Env, Class name = mc, completed in 1ms, has a truthy return value, Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 15:15:26.348: Process Execution: > ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py > ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py error 15:15:26.474: Failed to get a list of the kernelspec using python script [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from jupyter_core.paths import jupyter_data_dir at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.475: Exception attempting to enumerate kernelspecs: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.475: Kernel spec not found: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } warn 15:15:26.476: Error occurred while trying to start the kernel, options.disableUI=false [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } warn 15:15:26.476: Kernel Error, context = start [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } debug 15:15:26.477: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 15:15:26.478: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 15:15:26.478: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 15:15:26.478: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.478: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.478: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 15:15:26.478: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.478: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.478: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 15:15:26.478: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.478: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.478: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.479: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.479: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.479: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:26.479: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:26.479: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:26.479: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.479: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:26.480: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.480: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.480: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.480: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.480: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.480: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.480: Create activated Env, Class name = mc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 15:15:26.480: Process Execution: > ~/Code/nb/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 15:15:26.480: Create activated Env, Class name = mc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 15:15:26.481: Process Execution: > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 15:15:26.481: Create activated Env, Class name = mc, completed in 3ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 15:15:26.481: Process Execution: > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 15:15:26.493: Checking if product is installed, Class name = nu, completed in 15ms, has a truthy return value, Arg 1: 18, Arg 2: undefined, Return Value: true debug 15:15:26.503: Checking if product is installed, Class name = nu, completed in 25ms, has a truthy return value, Arg 1: 27, Arg 2: undefined, Return Value: true debug 15:15:26.568: Checking if product is installed, Class name = nu, completed in 90ms, has a truthy return value, Arg 1: 20, Arg 2: undefined, Return Value: true debug 15:15:26.568: Create activated Env, Class name = mc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 15:15:26.568: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.568: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.568: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.568: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.568: Get Custom Env Variables, Class name = Tc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.568: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 0ms debug 15:15:26.568: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.568: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 49 variables debug 15:15:26.568: Getting activated env variables impl, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.568: Getting activated env variables, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 15:15:26.568: Create activated Env, Class name = mc, completed in 0ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 15:15:26.569: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version debug 15:15:26.757: Create activated Env, Class name = mc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 15:15:26.757: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: undefined debug 15:15:26.757: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.757: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.757: Get Custom Env Variables, Class name = Tc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.758: Get Custom Env Variables, Class name = Tc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 15:15:26.758: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 48 and custom env var count 43 in 1ms debug 15:15:26.758: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.758: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 49 variables debug 15:15:26.758: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 15:15:26.758: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: undefined debug 15:15:26.758: Create activated Env, Class name = mc, completed in 1ms, has a truthy return value, Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 15:15:26.759: Process Execution: > ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py > ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py error 15:15:26.862: Failed to get a list of the kernelspec using python script [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from jupyter_core.paths import jupyter_data_dir at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.862: Exception attempting to enumerate kernelspecs: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.863: Kernel spec not found: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } info 15:15:28.392: Dispose Kernel '/Users/mv/Code/nb/nb.ipynb' associated with '/Users/mv/Code/nb/nb.ipynb' debug 15:15:28.392: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb/nb.ipynb error 15:15:28.393: Error in execution [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } error 15:15:28.393: Error in execution (get message for cell) [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } debug 15:15:28.406: VSCodeNotebookController::handleExecution, Class name = Ov, completed in 2483ms, has a falsy return value ```

Notes on Logs

The logs until this part seems to work:

Working: ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version ```console /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from jupyter_core.paths import jupyter_data_dir 7.4.9 ```
Not working: ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py ```console error 15:15:26.862: Failed to get a list of the kernelspec using python script [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from jupyter_core.paths import jupyter_data_dir at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.862: Exception attempting to enumerate kernelspecs: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } error 15:15:26.863: Kernel spec not found: [Ua [Error]: /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter_core/command.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from . import paths at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:2:2145141) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)] { category: 'unknown' } info 15:15:28.392: Dispose Kernel '/Users/mv/Code/nb/nb.ipynb' associated with '/Users/mv/Code/nb/nb.ipynb' debug 15:15:28.392: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb/nb.ipynb error 15:15:28.393: Error in execution [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } error 15:15:28.393: Error in execution (get message for cell) [Sm [Error]: Jupyter cannot be started. Error attempting to locate Jupyter: 'Kernelspec' module not installed in the selected interpreter (/Users/mv/Code/nb/.venv/bin/python). Please re-install or update 'jupyter'. at Nf.startServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252723) at async Nf.createServer (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:252008) at async pf.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:230132) at async xf.create (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:250050) at async hg.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/out/extension.node.js:17:305845)] { category: 'jupyterinstall' } ```

Weirdly, when trying the same command (see above getJupyterKernelspecVersion.py) in the terminal, it works fine:

~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
7.4.9%    

Originally posted by @justmars in https://github.com/microsoft/vscode-jupyter/issues/12439#issuecomment-1379770996

justmars commented 1 year ago

With the release version (1.74.3), the notebook works fine:

mkdir nb && cd ipynb
pyenv local 3.11.1
python -m venv .venv 
source .venv/bin/activate
pip install jupyter
touch nb.ipynb
# open notebook in vscode, check proper kernel is selected, run import sys in cell, works

With the insiders version 1.75.0-insider, the notebook now shows a different error

Failed to start the Kernel. Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found

The `jupyter-notebook' command exists in these Python versions:

3.11.1

Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. View Jupyter log for further details.

Here are the logs in case helpful:

Jupyter Logs for 1.75.0-insider ```console debug 11:51:57.101: VSCodeNotebookController::handleExecution, Class name = Av (started execution) debug 11:51:57.102: Execute Cell 0 /Users/mv/Code/nb/nb.ipynb debug 11:51:57.102: start the kernel, options.disableUI=false for /Users/mv/Code/nb/nb.ipynb debug 11:51:57.102: Start Jupyter Session in kernel.ts with disableUI = false info 11:51:57.102: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (Python Path: /Users/mv/Code/nb/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]) for '/Users/mv/Code/nb/nb.ipynb' (disableUI=false) info 11:51:57.102: Checking for server existence. debug 11:51:57.102: Checking for server usability. debug 11:51:57.102: Starting notebook server. info 11:51:57.102: Connecting to server info 11:51:57.102: Launching server info 11:51:57.103: Starting Notebook info 11:51:57.103: Generating custom default config at /var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/905a2470-6dac-4a76-8fef-4bac0988c9dd/jupyter_notebook_config.py debug 11:51:57.103: Starting Jupyter Notebook Starting Jupyter from ~/Code/nb/.venv/bin/python debug 11:51:57.103: Create activated Env, Class name = fc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 11:51:57.103: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 11:51:57.103: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.103: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.103: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.104: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.104: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 1ms debug 11:51:57.104: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.104: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 11:51:57.104: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.104: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 11:51:57.104: Create activated Env, Class name = fc, completed in 1ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} debug 11:51:57.104: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: , Arg 3: true debug 11:51:57.104: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 11:51:57.104: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 11:51:57.104: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.104: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.104: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 11:51:57.104: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 11:51:57.104: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 50 variables debug 11:51:57.105: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 11:51:57.105: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: , Arg 3: true info 11:51:57.106: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/905a2470-6dac-4a76-8fef-4bac0988c9dd/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/905a2470-6dac-4a76-8fef-4bac0988c9dd/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 debug 11:51:57.106: Waiting for Jupyter Notebook pyenv: jupyter-notebook: command not found debug 11:51:57.189: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: debug 11:51:57.262: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 debug 11:51:57.263: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. debug 11:51:57.264: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. warn 11:51:57.264: Error occurred while trying to start the kernel, options.disableUI=false [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } warn 11:51:57.264: Kernel Error, context = start [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 11:51:57.265: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 11:51:57.265: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 11:51:57.265: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.265: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.265: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.266: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 11:51:57.266: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 1ms debug 11:51:57.266: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.266: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 11:51:57.266: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 11:51:57.266: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 11:51:57.266: Create activated Env, Class name = fc, completed in 1ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 11:51:57.266: Process Execution: > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 11:51:57.374: Checking if product is installed, Class name = ru, completed in 110ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true debug 11:51:57.375: Are Dependencies Installed, Class name = Au, completed in 111ms, has a truthy return value, Arg 1: "~/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true info 11:51:57.375: Dispose Kernel '/Users/mv/Code/nb/nb.ipynb' associated with '/Users/mv/Code/nb/nb.ipynb' debug 11:51:57.375: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb/nb.ipynb error 11:51:57.376: Error in execution [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } error 11:51:57.376: Error in execution (get message for cell) [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 11:51:57.397: VSCodeNotebookController::handleExecution, Class name = Av, completed in 296ms, has a falsy return value ```
DonJayamanne commented 1 year ago

With the release version (1.74.3), the notebook works fine: pip install jupyter

Please could you try installing as follows python -m pip install jupyter ntoebook -U --force-reinstall

Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1

Agreed, this seems to be related to some Python Path issues. We have cleaned up some code and stopped making assumptions about some path variables as it seems that things worked most likey by chance at this stage.

Please could you use the latest insiders and then Please could you enable logging as follows:

Weirdly, when trying the same command (see above getJupyterKernelspecVersion.py) in the terminal, it works fine: ~/Code/nb/.venv/bin/python ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000131034/pytho

Can you type the following in the terminal after you run python -m pip install jupyter ntoebook -U --force-reinstall

justmars commented 1 year ago

Environment

VSCode: 1.75.0-insider Python Extension: v2023.1.10111008 Jupyter Extension: v2023.1.2000141019

Steps

pyenv local 3.11.1
python -m venv .venv 
source .venv/bin/activate
python -m pip install jupyter notebook -U --force-reinstall
touch nb.ipynb
# run import sys on first cell of notebook in Jupyter, error; see logs
which python
# /Users/mv/Code/nb/.venv/bin/python
which jupyter
# /Users/mv/.pyenv/shims/jupyter
python -c "import jupyter;print(jupyter.file)"
# AttributeError: module 'jupyter' has no attribute 'file'

Logs

Jupyter Logs ```console debug 19:56:27.974: VSCodeNotebookController::handleExecution, Class name = Av (started execution) debug 19:56:27.976: Execute Cell 0 /Users/mv/Code/nb/nb.ipynb debug 19:56:27.976: start the kernel, options.disableUI=false for /Users/mv/Code/nb/nb.ipynb debug 19:56:27.976: Start Jupyter Session in kernel.ts with disableUI = false info 19:56:27.977: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (Python Path: /Users/mv/Code/nb/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]) for '/Users/mv/Code/nb/nb.ipynb' (disableUI=false) info 19:56:27.977: Checking for server existence. debug 19:56:27.977: Checking for server usability. debug 19:56:27.977: Starting notebook server. info 19:56:27.977: Connecting to server info 19:56:27.977: Launching server info 19:56:27.978: Starting Notebook info 19:56:27.980: Generating custom default config at /var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/3066c52d-6db3-41c3-838d-a076d7f90cf3/jupyter_notebook_config.py debug 19:56:27.980: Starting Jupyter Notebook Starting Jupyter from ~/Code/nb/.venv/bin/python debug 19:56:27.980: Create activated Env, Class name = fc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 19:56:27.980: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 19:56:27.980: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 19:56:27.980: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 19:56:27.980: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:27.981: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:27.981: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 51 and custom env var count 46 in 1ms debug 19:56:27.981: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 19:56:27.981: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 52 variables debug 19:56:27.981: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 19:56:27.981: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 19:56:27.981: Create activated Env, Class name = fc, completed in 1ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} debug 19:56:27.981: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: , Arg 3: true debug 19:56:27.981: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 19:56:27.981: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 19:56:27.981: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:27.981: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:27.981: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 51 and custom env var count 46 in 0ms debug 19:56:27.981: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 19:56:27.981: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 52 variables debug 19:56:27.982: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 19:56:27.982: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: , Arg 3: true info 19:56:27.983: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/3066c52d-6db3-41c3-838d-a076d7f90cf3/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/3066c52d-6db3-41c3-838d-a076d7f90cf3/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 debug 19:56:27.984: Waiting for Jupyter Notebook pyenv: jupyter-notebook: command not found debug 19:56:28.560: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: debug 19:56:28.630: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 debug 19:56:28.631: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. debug 19:56:28.632: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. warn 19:56:28.633: Error occurred while trying to start the kernel, options.disableUI=false [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } warn 19:56:28.635: Kernel Error, context = start [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 19:56:28.635: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 19:56:28.635: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 19:56:28.635: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 19:56:28.635: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 19:56:28.635: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:28.636: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 19:56:28.636: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 51 and custom env var count 46 in 1ms debug 19:56:28.636: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 19:56:28.636: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 52 variables debug 19:56:28.637: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 19:56:28.637: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 19:56:28.637: Create activated Env, Class name = fc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 19:56:28.637: Process Execution: > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 19:56:28.822: Checking if product is installed, Class name = ru, completed in 187ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true debug 19:56:28.823: Are Dependencies Installed, Class name = Au, completed in 188ms, has a truthy return value, Arg 1: "~/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true info 19:56:28.824: Dispose Kernel '/Users/mv/Code/nb/nb.ipynb' associated with '/Users/mv/Code/nb/nb.ipynb' debug 19:56:28.824: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb/nb.ipynb error 19:56:28.826: Error in execution [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } error 19:56:28.826: Error in execution (get message for cell) [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 19:56:28.839: VSCodeNotebookController::handleExecution, Class name = Av, completed in 865ms, has a falsy return value ```
DonJayamanne commented 1 year ago

Oops, i meant the following python -c "import jupyter;print(jupyter.__file__)"

DonJayamanne commented 1 year ago

Thanks for providing the information requested and thanks for your patience.

which jupyter

/Users/mv/.pyenv/shims/jupyter

Yup, this seems to be the problem. for some reason jupyter is not getting installed into your virtual environment, it only gets installed in your pyenv directory.

pyenv local 3.11.1

Do you know how or why this is getting printed in the terminal. This explains a few things, it seems pyenv is getting initialized in your shell, but not in VS Code (VS Code doesn't have any knowledge of pyenv, only uses the virtual env .venv in this case).

pyenv local 3.11.1

  1. Could you open a new terminal and run the following command which python
  2. Next in VS Code look for the command Jupyter: Select Interpreter to Start Jupyter Server
  3. In the dropdown list you will see a number of Python enviornments
  4. Please select the one that you see in the first step
  5. Next reload VS Code and try running a cell again
  6. If that still fails, please send the same logs that you sent earlier (please ensure to send all of the logs, the initial bit was missing in the first log you sent)
justmars commented 1 year ago

Oops, i meant the following python -c "import jupyter;print(jupyter.file)"

python -c "import jupyter;print(jupyter.__file__)"
# /Users/mv/Code/nb/.venv/lib/python3.11/site-packages/jupyter.py

Do you know how or why this is getting printed in the terminal. This explains a few things, it seems pyenv is getting initialized in your shell, but not in VS Code (VS Code doesn't have any knowledge of pyenv, only uses the virtual env .venv in this case).

With respect to pyenv, python, and jupyter, these are the relevant environment variables I have in .zshrc:

export JUPYTER_PLATFORM_DIRS=1 # see Jupyter DeprecationWarning
export PYTHONDEVMODE=1 #  see https://docs.python.org/3.12/library/devmode.html
export PYENV_ROOT="$HOME/.pyenv" # pyenv python version
...
export PATH="$PYENV_ROOT:$POETRY_ROOT:$SQLITE:$PATH"
...
if command -v pyenv 1>/dev/null 2>&1; then
 eval "$(pyenv init -)"
fi

The resulting environment (parameters above):

PATH=/Users/mv/Code/nb/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin
JUPYTER_PLATFORM_DIRS=1
PYENV_ROOT=/Users/mv/.pyenv
POETRY_ROOT=/Users/mv/.local/bin
PYENV_SHELL=zsh
VIRTUAL_ENV=/Users/mv/Code/nb/.venv

Is this because pyenv init - initializes the .venv's pyvenv.cfg to the following output:

home = /Users/mv/.pyenv/versions/3.11.1/bin
include-system-site-packages = false
version = 3.11.1
executable = /Users/mv/.pyenv/versions/3.11.1/bin/python3.11
command = /Users/mv/.pyenv/versions/3.11.1/bin/python3 -m venv /Users/mv/Code/nb-test/.venv

... and the command portion enables initialization of python's.venv... but no such command is applied to jupyter?

  1. Could you open a new terminal and run the following command which python
which python
# /Users/mv/Code/nb/.venv/bin/python
  1. If that still fails, please send the same logs that you sent earlier (please ensure to send all of the logs, the initial bit was missing in the first log you sent)
See Full Jupyter Logs ```console Visual Studio Code - Insiders (1.75.0-insider, undefined, desktop) Jupyter Extension Version: 2023.1.2000141019. Python Extension Version: 2023.1.10111008. Workspace folder /Users/mv/Code/nb warn 10:31:39.837: Exception while attempting zmq : No native build was found for platform=darwin arch=arm64 runtime=electron abi=106 uv=1 armv=8 libc=glibc node=16.14.2 electron=19.1.9 loaded from: /Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/node_modules/zeromq User belongs to experiment group 'jupyterTest' User belongs to experiment group 'jupyterEnhancedDataViewer' debug 10:31:39.913: Updating cache with Python kernels , Added = , Updated = , Removed = debug 10:31:39.913: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: undefined, Arg 2: "RunPythonCode" debug 10:31:39.914: Start refreshing Kernel Picker (1673922699914) debug 10:31:39.914: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb/nb.ipynb" debug 10:31:39.914: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 10:31:39.916: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb/nb.ipynb" info 10:31:39.917: LSP Notebooks experiment is enabled debug 10:31:39.917: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:39.936: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 10:31:39.936: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Updated = , Removed = debug 10:31:39.936: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 10:31:39.936: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Updated = , Removed = debug 10:31:39.936: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:39.936: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.032: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 10:31:40.032: Get Active Interpreter, Class name = Ss (started execution), Arg 1: undefined debug 10:31:40.034: Get Custom Env Variables, Class name = Nc, completed in 121ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" debug 10:31:40.034: Get Jupyter Sub Paths, Class name = Xu, completed in 121ms, has a truthy return value, Arg 1: "", Arg 2: "kernels", Return Value: debug 10:31:40.034: Get Jupyter Kernel Paths, Class name = Xu, completed in 121ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.034: Get KernelSpec root path, Class name = Xu, completed in 121ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.037: Get Active Interpreter, Class name = Ss, completed in 123ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.038: Get Active Interpreter, Class name = Ss, completed in 124ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.038: Get Active Interpreter, Class name = Ss, completed in 122ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.038: Rank Kernels, Class name = Zv (started execution), Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.038: Find preferred kernel for /Users/mv/Code/nb/nb.ipynb with metadata {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}} & preferred interpreter /Users/mv/Code/nb/.venv/bin/python debug 10:31:40.038: Rank Kernels, Class name = Zv, completed in 0ms, has a falsy return value, Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined debug 10:31:40.038: Rank Kernels, Class name = Zv (started execution), Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.038: Find preferred kernel for /Users/mv/Code/nb/nb.ipynb with metadata {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}} & preferred interpreter /Users/mv/Code/nb/.venv/bin/python debug 10:31:40.038: Rank Kernels, Class name = Zv, completed in 0ms, has a falsy return value, Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined debug 10:31:40.038: Compute Preferred Controller, Class name = Sv, completed in 122ms, has a truthy return value, Arg 1: , Arg 2: undefined, Arg 3: {"a":false,"b":{"j":false,"q":{"a":{},"b":{},"c":0}}}, Return Value: {} debug 10:31:40.039: Get Active Interpreter, Class name = Ss, completed in 122ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.039: Get Active Interpreter, Class name = Ss, completed in 103ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.039: Get Active Interpreter, Class name = Ss, completed in 103ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.039: Get Active Interpreter, Class name = Ss, completed in 7ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.039: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 10:31:40.039: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.039: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.039: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.039: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.039: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 10:31:40.039: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.039: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.039: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.039: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.040: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.040: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.040: Get Active Interpreter, Class name = Ss, completed in 8ms, has a truthy return value, Arg 1: undefined, Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.040: interpreterPackages getPackageInformation, Class name = Wl (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 10:31:40.040: Create activated Env, Class name = fc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 10:31:40.040: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.040: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.040: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.040: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.040: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:40.042: Not Searching for kernels as path does not exist, /usr/share/jupyter/kernels debug 10:31:40.042: Not Searching for kernels as path does not exist, /usr/local/share/jupyter/kernels debug 10:31:40.046: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher') with name '.venv (Python 3.11.1)' debug 10:31:40.046: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb/nb.ipynb" debug 10:31:40.046: Get Active Interpreter, Class name = Ss, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.046: Rank Kernels, Class name = Zv (started execution), Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.046: Find preferred kernel for /Users/mv/Code/nb/nb.ipynb with metadata {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}} & preferred interpreter /Users/mv/Code/nb/.venv/bin/python debug 10:31:40.046: Rank Kernels, Class name = Zv, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.047: Preferred kernel .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher is exact match or top match for non python kernels, (true, [object Object], true, false) info 10:31:40.047: PreferredConnection: .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher found for NotebookDocument: /Users/mv/Code/nb/nb.ipynb debug 10:31:40.047: TargetController found ID: startUsingPythonInterpreter:.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher for document /Users/mv/Code/nb/nb.ipynb debug 10:31:40.047: Found 7 cached controllers debug 10:31:40.047: Creating 7 controllers debug 10:31:40.047: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher') with name 'Python 3.11.0' debug 10:31:40.048: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher') with name 'Python 3.11.0' debug 10:31:40.048: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher') with name 'Python 3.10.7' debug 10:31:40.048: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher') with name 'Python 3.10.7' debug 10:31:40.048: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher') with name 'Python 3.11.1' debug 10:31:40.048: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher') with name 'Python 3.11.1' debug 10:31:40.049: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher') with name 'Python 3.10.6' debug 10:31:40.049: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher') with name 'Python 3.10.6' debug 10:31:40.049: Creating notebook controller for startUsingPythonInterpreter & view jupyter-notebook (id='.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher') with name 'Python 3.9.6' debug 10:31:40.049: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher') with name 'Python 3.9.6' debug 10:31:40.049: Creating notebook controller for startUsingPythonInterpreter & view interactive (id='.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher') with name '.venv (Python 3.11.1)' debug 10:31:40.050: Creating notebook controller for startUsingLocalKernelSpec & view jupyter-notebook (id='.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher') with name 'Python 3 (ipykernel)' debug 10:31:40.050: Creating notebook controller for startUsingLocalKernelSpec & view interactive (id='.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher') with name 'Python 3 (ipykernel)' debug 10:31:40.050: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb/nb.ipynb" debug 10:31:40.050: Get Active Interpreter, Class name = Ss, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.051: Rank Kernels, Class name = Zv (started execution), Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.051: Find preferred kernel for /Users/mv/Code/nb/nb.ipynb with metadata {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}} & preferred interpreter /Users/mv/Code/nb/.venv/bin/python debug 10:31:40.051: Found 7 cached controllers debug 10:31:40.051: Creating 7 controllers debug 10:31:40.052: Found 7 cached controllers debug 10:31:40.052: Creating 7 controllers debug 10:31:40.054: Rank Kernels, Class name = Zv, completed in 3ms, has a truthy return value, Arg 1: "~/Code/nb/nb.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":".venv","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.11.1"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd"}}}, Arg 4: , Arg 5: "", Arg 6: undefined info 10:31:40.054: Preferred kernel .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher is exact match or top match for non python kernels, (false, [object Object], true, false) info 10:31:40.054: PreferredConnection: .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher found for NotebookDocument: /Users/mv/Code/nb/nb.ipynb debug 10:31:40.055: TargetController found ID: startUsingPythonInterpreter:.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher for document /Users/mv/Code/nb/nb.ipynb debug 10:31:40.057: KernelProvider switched kernel to id = .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher debug 10:31:40.057: Controller selection change completed debug 10:31:40.057: Storing Preferred remote kernel for /Users/mv/Code/nb/nb.ipynb is undefined debug 10:31:40.069: Compute Preferred Controller, Class name = Sv, completed in 23ms, has a truthy return value, Arg 1: , Arg 2: undefined, Arg 3: {"a":true,"b":null}, Return Value: {} debug 10:31:40.069: Compute Preferred Controller, Class name = Sv, completed in 19ms, has a truthy return value, Arg 1: , Arg 2: undefined, Arg 3: {"a":false,"b":{"j":false,"q":{"a":{},"b":{},"c":0}}}, Return Value: debug 10:31:40.070: Loading kernelspec from /Users/mv/Library/Jupyter/kernels/python3/kernel.json for debug 10:31:40.087: Conda file returned by Python Extension is conda debug 10:31:40.090: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 51ms debug 10:31:40.090: Getting activated env variables from Python, Class name = _s, completed in 51ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.090: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 51ms with 50 variables debug 10:31:40.090: Getting activated env variables impl, Class name = _s, completed in 51ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.091: Getting activated env variables, Class name = _s, completed in 52ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.091: Create activated Env, Class name = fc, completed in 52ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 10:31:40.091: Process Execution: > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 10:31:40.092: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 53ms debug 10:31:40.092: Getting activated env variables from Python, Class name = _s, completed in 53ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.092: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 53ms with 50 variables debug 10:31:40.092: Getting activated env variables impl, Class name = _s, completed in 53ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.092: Getting activated env variables, Class name = _s, completed in 53ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.092: Create activated Env, Class name = fc, completed in 53ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 10:31:40.092: Process Execution: > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 10:31:40.098: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 58ms debug 10:31:40.098: Getting activated env variables from Python, Class name = _s, completed in 58ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.098: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 58ms with 50 variables debug 10:31:40.099: Getting activated env variables impl, Class name = _s, completed in 59ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:40.099: Getting activated env variables, Class name = _s, completed in 59ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:40.099: Create activated Env, Class name = fc, completed in 59ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 10:31:40.099: Process Execution: > ~/Code/nb/.venv/bin/python -m pip list > ~/Code/nb/.venv/bin/python -m pip list debug 10:31:40.106: Checking if product is installed, Class name = ru, completed in 67ms, has a truthy return value, Arg 1: 18, Arg 2: undefined, Return Value: true debug 10:31:40.306: Full interpreter list after refreshing (total 274ms, resolve 1ms, refresh 273ms) is length: 6, /Users/mv/.pyenv/versions/3.10.6/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.10.6/bin/python:/Users/mv/.pyenv/versions/3.10.6/bin/python, /Users/mv/.pyenv/versions/3.10.7/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.10.7/bin/python:/Users/mv/.pyenv/versions/3.10.7/bin/python, /Users/mv/.pyenv/versions/3.11.0/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.11.0/bin/python:/Users/mv/.pyenv/versions/3.11.0/bin/python, /Users/mv/.pyenv/versions/3.11.1/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.11.1/bin/python:/Users/mv/.pyenv/versions/3.11.1/bin/python, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /Users/mv/Code/nb/.venv/bin/python:.venv:Venv:/Users/mv/Code/nb/.venv/bin/python:/Users/mv/Code/nb/.venv/bin/python debug 10:31:40.307: Python environment for /Users/mv/Code/nb/.venv/bin/python is /Users/mv/Code/nb/.venv/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/Code/nb/.venv/bin/python","id":"/Users/mv/Code/nb/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/Code/nb/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"name":"nb","index":0}},"version":{"major":3,"minor":11,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Venv"]},"id":"/Users/mv/Code/nb/.venv/bin/python"} and translated is {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.307: Full interpreter list after refreshing (total 0ms, resolve 0ms, refresh 0ms) is length: 6, /Users/mv/.pyenv/versions/3.10.6/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.10.6/bin/python:/Users/mv/.pyenv/versions/3.10.6/bin/python, /Users/mv/.pyenv/versions/3.10.7/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.10.7/bin/python:/Users/mv/.pyenv/versions/3.10.7/bin/python, /Users/mv/.pyenv/versions/3.11.0/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.11.0/bin/python:/Users/mv/.pyenv/versions/3.11.0/bin/python, /Users/mv/.pyenv/versions/3.11.1/bin/python:undefined:Pyenv:/Users/mv/.pyenv/versions/3.11.1/bin/python:/Users/mv/.pyenv/versions/3.11.1/bin/python, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /Users/mv/Code/nb/.venv/bin/python:.venv:Venv:/Users/mv/Code/nb/.venv/bin/python:/Users/mv/Code/nb/.venv/bin/python debug 10:31:40.308: Python environment for /Users/mv/Code/nb/.venv/bin/python is /Users/mv/Code/nb/.venv/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/Code/nb/.venv/bin/python","id":"/Users/mv/Code/nb/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/Code/nb/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"name":"nb","index":0}},"version":{"major":3,"minor":11,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Venv"]},"id":"/Users/mv/Code/nb/.venv/bin/python"} and translated is {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.308: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.309: loadData after detecting changes to interpreters debug 10:31:40.309: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.309: refreshData after detecting changes to interpreters debug 10:31:40.309: Listing Python kernels for Interpreter ~/Code/nb/.venv/bin/python debug 10:31:40.309: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.309: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.6/bin/python debug 10:31:40.309: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.309: Python environment for /Users/mv/.pyenv/versions/3.10.6/bin/python is /Users/mv/.pyenv/versions/3.10.6/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","id":"/Users/mv/.pyenv/versions/3.10.6/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.6/bin/python","path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.10.6"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Nov 2 2022, 07:53:00) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.10.6/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.10.6/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.10.6","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.6/bin/python","path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Nov 2 2022, 07:53:00) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.309: Get Jupyter Kernel Paths, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.309: Get Jupyter Kernel Paths, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.309: Get KernelSpec root path, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.309: Get KernelSpec root path, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.310: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.310: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.310: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.310: loadData after detecting changes to interpreters debug 10:31:40.310: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.310: refreshData after detecting changes to interpreters debug 10:31:40.310: Listing Python kernels for Interpreter ~/Code/nb/.venv/bin/python debug 10:31:40.310: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.310: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.6/bin/python debug 10:31:40.310: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.310: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.7/bin/python debug 10:31:40.310: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.310: Python environment for /Users/mv/.pyenv/versions/3.10.7/bin/python is /Users/mv/.pyenv/versions/3.10.7/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","id":"/Users/mv/.pyenv/versions/3.10.7/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.7/bin/python","path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.10.7"},"version":{"major":3,"minor":10,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.10.7 (main, Oct 12 2022, 18:53:17) [Clang 14.0.0 (clang-1400.0.29.102)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.10.7/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.10.7/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.10.7","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.7/bin/python","path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":10,"patch":7,"raw":"3.10.7 (main, Oct 12 2022, 18:53:17) [Clang 14.0.0 (clang-1400.0.29.102)]"}} debug 10:31:40.310: Get Jupyter Kernel Paths, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.310: Get KernelSpec root path, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.311: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.311: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.311: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.311: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.311: loadData after detecting changes to interpreters debug 10:31:40.311: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.311: refreshData after detecting changes to interpreters debug 10:31:40.311: Listing Python kernels for Interpreter ~/Code/nb/.venv/bin/python debug 10:31:40.311: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.311: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.6/bin/python debug 10:31:40.311: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.311: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.7/bin/python debug 10:31:40.311: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.311: Listing Python kernels for Interpreter ~/.pyenv/versions/3.11.0/bin/python debug 10:31:40.311: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.311: Python environment for /Users/mv/.pyenv/versions/3.11.0/bin/python is /Users/mv/.pyenv/versions/3.11.0/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","id":"/Users/mv/.pyenv/versions/3.11.0/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.0/bin/python","path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.11.0"},"version":{"major":3,"minor":11,"micro":0,"release":{"level":"final","serial":0},"sysVersion":"3.11.0 (main, Nov 1 2022, 21:56:32) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.11.0/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.11.0/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.11.0","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.0/bin/python","path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":11,"patch":0,"raw":"3.11.0 (main, Nov 1 2022, 21:56:32) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.312: Get Jupyter Kernel Paths, Class name = Xu, completed in 1ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.312: Get KernelSpec root path, Class name = Xu, completed in 1ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.312: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.312: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.312: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.312: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.312: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.312: loadData after detecting changes to interpreters debug 10:31:40.312: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.312: refreshData after detecting changes to interpreters debug 10:31:40.312: Listing Python kernels for Interpreter ~/Code/nb/.venv/bin/python debug 10:31:40.312: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.312: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.6/bin/python debug 10:31:40.312: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.313: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.7/bin/python debug 10:31:40.313: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.313: Listing Python kernels for Interpreter ~/.pyenv/versions/3.11.0/bin/python debug 10:31:40.313: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.313: Listing Python kernels for Interpreter ~/.pyenv/versions/3.11.1/bin/python debug 10:31:40.313: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.313: Python environment for /Users/mv/.pyenv/versions/3.11.1/bin/python is /Users/mv/.pyenv/versions/3.11.1/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","id":"/Users/mv/.pyenv/versions/3.11.1/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.1/bin/python","path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.11.1"},"version":{"major":3,"minor":11,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.11.1/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.11.1/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.11.1","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.1/bin/python","path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.313: Get Jupyter Kernel Paths, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.313: Get KernelSpec root path, Class name = Xu, completed in 0ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.314: Get Active Interpreter, Class name = Ss, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.314: Get Active Interpreter, Class name = Ss, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.314: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.314: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.314: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.314: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.314: loadData after detecting changes to interpreters debug 10:31:40.314: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.314: refreshData after detecting changes to interpreters debug 10:31:40.314: Listing Python kernels for Interpreter ~/Code/nb/.venv/bin/python debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.6/bin/python debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: Listing Python kernels for Interpreter ~/.pyenv/versions/3.10.7/bin/python debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: Listing Python kernels for Interpreter ~/.pyenv/versions/3.11.0/bin/python debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: Listing Python kernels for Interpreter ~/.pyenv/versions/3.11.1/bin/python debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: Listing Python kernels for Interpreter /usr/bin/python3 debug 10:31:40.314: Get Active Interpreter, Class name = Ss (started execution), Arg 1: "~/Code/nb" debug 10:31:40.314: 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":"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9"},"version":{"major":3,"minor":9,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9","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":6,"raw":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Jupyter Kernel Paths, Class name = Xu, completed in 1ms, has a truthy return value, Arg 1: "", Return Value: debug 10:31:40.315: Get KernelSpec root path, Class name = Xu, completed in 1ms, has a truthy return value, Arg 1: {"a":false,"b":null}, Return Value: , , debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Get Active Interpreter, Class name = Ss, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Return Value: {"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Python environment for /Users/mv/.pyenv/versions/3.10.6/bin/python is /Users/mv/.pyenv/versions/3.10.6/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","id":"/Users/mv/.pyenv/versions/3.10.6/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.6/bin/python","path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.10.6"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Nov 2 2022, 07:53:00) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.10.6/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.10.6/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.10.6","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.6/bin/python","path":"/Users/mv/.pyenv/versions/3.10.6/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Nov 2 2022, 07:53:00) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Python environment for /Users/mv/.pyenv/versions/3.10.7/bin/python is /Users/mv/.pyenv/versions/3.10.7/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","id":"/Users/mv/.pyenv/versions/3.10.7/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.7/bin/python","path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.10.7"},"version":{"major":3,"minor":10,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.10.7 (main, Oct 12 2022, 18:53:17) [Clang 14.0.0 (clang-1400.0.29.102)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.10.7/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.10.7/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.10.7","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.10.7/bin/python","path":"/Users/mv/.pyenv/versions/3.10.7/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":10,"patch":7,"raw":"3.10.7 (main, Oct 12 2022, 18:53:17) [Clang 14.0.0 (clang-1400.0.29.102)]"}} debug 10:31:40.315: Python environment for /Users/mv/.pyenv/versions/3.11.0/bin/python is /Users/mv/.pyenv/versions/3.11.0/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","id":"/Users/mv/.pyenv/versions/3.11.0/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.0/bin/python","path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.11.0"},"version":{"major":3,"minor":11,"micro":0,"release":{"level":"final","serial":0},"sysVersion":"3.11.0 (main, Nov 1 2022, 21:56:32) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.11.0/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.11.0/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.11.0","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.0/bin/python","path":"/Users/mv/.pyenv/versions/3.11.0/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":11,"patch":0,"raw":"3.11.0 (main, Nov 1 2022, 21:56:32) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.315: Python environment for /Users/mv/.pyenv/versions/3.11.1/bin/python is /Users/mv/.pyenv/versions/3.11.1/bin/python from Python Extension API is {"internal":{"path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","id":"/Users/mv/.pyenv/versions/3.11.1/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.1/bin/python","path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/Users/mv/.pyenv/versions/3.11.1"},"version":{"major":3,"minor":11,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":["Pyenv"]},"id":"/Users/mv/.pyenv/versions/3.11.1/bin/python"} and translated is {"id":"/Users/mv/.pyenv/versions/3.11.1/bin/python","sysPrefix":"/Users/mv/.pyenv/versions/3.11.1","displayPath":{"$mid":1,"path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/Users/mv/.pyenv/versions/3.11.1/bin/python","path":"/Users/mv/.pyenv/versions/3.11.1/bin/python","scheme":"file"},"displayName":"","envType":"Pyenv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.316: 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":"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9"},"version":{"major":3,"minor":9,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9","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":6,"raw":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"}} debug 10:31:40.316: Full interpreter list is length: 6, /Users/mv/Code/nb/.venv/bin/python:.venv:Venv:/Users/mv/Code/nb/.venv/bin/python, /Users/mv/.pyenv/versions/3.10.6/bin/python::Pyenv:/Users/mv/.pyenv/versions/3.10.6/bin/python, /Users/mv/.pyenv/versions/3.10.7/bin/python::Pyenv:/Users/mv/.pyenv/versions/3.10.7/bin/python, /Users/mv/.pyenv/versions/3.11.0/bin/python::Pyenv:/Users/mv/.pyenv/versions/3.11.0/bin/python, /Users/mv/.pyenv/versions/3.11.1/bin/python::Pyenv:/Users/mv/.pyenv/versions/3.11.1/bin/python, /usr/bin/python3::Unknown:/usr/bin/python3 debug 10:31:40.316: Refreshed Environments debug 10:31:40.324: Not Searching for kernels as path does not exist, /Users/mv/.pyenv/versions/3.10.6/share/jupyter/kernels debug 10:31:40.324: Not Searching for kernels as path does not exist, /Users/mv/.pyenv/versions/3.10.7/share/jupyter/kernels debug 10:31:40.324: Not Searching for kernels as path does not exist, /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/share/jupyter/kernels debug 10:31:40.333: Loading kernelspec from /Users/mv/Code/nb/.venv/share/jupyter/kernels/python3/kernel.json for /Users/mv/Code/nb/.venv/bin/python debug 10:31:40.334: Loading kernelspec from /Users/mv/.pyenv/versions/3.11.0/share/jupyter/kernels/python3/kernel.json for /Users/mv/.pyenv/versions/3.11.0/bin/python debug 10:31:40.334: Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd', /python debug 10:31:40.334: Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1', /python debug 10:31:40.334: Updating cache with Local kernels startUsingLocalKernelSpec:'.python3./Users/mv/Code/corpus-app/.venv/bin/python3./.-m#ipykernel_launcher (interpreter id = undefined)', Added = , Updated = , Removed = debug 10:31:40.335: Updating cache with Python kernels startUsingPythonInterpreter:'.jvsc74a57bd01862ca66b3b14c46ab63fec21a85c4ed440ee2cb8545ec09fbdfb9cfebe348b1./Users/mv/.pyenv/versions/3.11.0/python./Users/mv/.pyenv/versions/3.11.0/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.0/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd00e063c23e1310d9e7155bf1e8ffd6827dec196cedba9d3116bd85e18904f5eba./Users/mv/.pyenv/versions/3.10.7/python./Users/mv/.pyenv/versions/3.10.7/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.7/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd0ba0307993ca9ee80c544a7de252c785003be14ad562b2e8a24776ad2bbb1c449./Users/mv/.pyenv/versions/3.11.1/python./Users/mv/.pyenv/versions/3.11.1/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.11.1/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd06e67726a682468a4f6be3ac16a637d651bec560a9d49b278367cf554514d8b0e./Users/mv/.pyenv/versions/3.10.6/python./Users/mv/.pyenv/versions/3.10.6/python.-m#ipykernel_launcher (interpreter id = /Users/mv/.pyenv/versions/3.10.6/bin/python)', startUsingPythonInterpreter:'.jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (interpreter id = /usr/bin/python3)', startUsingPythonInterpreter:'.jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (interpreter id = /Users/mv/Code/nb/.venv/bin/python)' , Added = , Updated = , Removed = debug 10:31:40.543: interpreterPackages getPackageInformation, Class name = Wl, completed in 503ms, has a falsy return value, Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 10:31:40.582: _jupyterPythonPathFunction: "file:///Users/mv/Code/nb" is not a notebook debug 10:31:40.582: _jupyterPythonPathFunction: Giving Pylance "/Users/mv/Code/nb/.venv/bin/python" as python path for "file:///Users/mv/Code/nb/nb.ipynb" debug 10:31:41.317: End refreshing Kernel Picker (1673922699914) debug 10:31:41.881: Checking if product is installed, Class name = ru, completed in 1842ms, has a truthy return value, Arg 1: 20, Arg 2: undefined, Return Value: true debug 10:31:41.881: Create activated Env, Class name = fc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}}} debug 10:31:41.881: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:41.881: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:41.881: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:41.881: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:41.881: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:41.881: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 10:31:41.882: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:41.882: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 10:31:41.882: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:41.882: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:41.882: Create activated Env, Class name = fc, completed in 1ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} info 10:31:41.882: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version > ~/Code/nb/.venv/bin/python -m jupyter kernelspec --version debug 10:31:42.177: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:42.177: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:42.177: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:42.177: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:42.177: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:42.177: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 10:31:42.177: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 10:31:42.177: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:42.177: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 50 variables debug 10:31:42.177: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:42.177: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 50 variables debug 10:31:42.178: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:42.178: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:42.178: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:42.178: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:45.716: Initialize notebook communications for editor /Users/mv/Code/nb/nb.ipynb debug 10:31:45.716: Resolving notebook UI Comms (resolve) for /Users/mv/Code/nb/nb.ipynb debug 10:31:45.716: initialize CommonMessageCoordinator debug 10:31:45.723: Registering commtarget jupyter.widget debug 10:31:45.723: IPyWidgetMessageDispatcher.initialize debug 10:31:46.024: IPyWidgetMessageDispatcher.initialize debug 10:31:55.750: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envType":"Venv","envName":".venv","envPath":{"$mid":1,"path":"/Users/mv/Code/nb/.venv","scheme":"file"},"architecture":3,"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]","version":{"raw":"3.11.1","major":3,"minor":11,"patch":1,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.11.1 ('.venv': venv)","detailedDisplayName":"Python 3.11.1 ('.venv': venv)","uri":{"$mid":1,"path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} debug 10:31:55.750: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:55.750: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:55.750: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:31:55.750: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:55.750: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:55.751: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 1ms debug 10:31:55.751: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:55.751: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 10:31:55.751: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:31:55.751: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:31:55.751: Create activated Env, Class name = fc, completed in 1ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envType":"Venv","envName":".venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"architecture":3,"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]","version":{"raw":"3.11.1","major":3,"minor":11,"patch":1,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.11.1 ('.venv': venv)","detailedDisplayName":"Python 3.11.1 ('.venv': venv)","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} info 10:31:55.752: Process Execution: > ~/Code/nb/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 10:31:55.774: Checking if product is installed, Class name = ru, completed in 24ms, has a truthy return value, Arg 1: 27, Arg 2: undefined, Return Value: true debug 10:31:55.775: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:55.775: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:55.775: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:31:55.775: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:55.775: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:31:55.775: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 10:31:55.775: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:55.775: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 50 variables debug 10:31:55.776: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:31:55.776: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:32:06.673: VSCodeNotebookController::handleExecution, Class name = Av (started execution) debug 10:32:06.674: Execute Cell 0 /Users/mv/Code/nb/nb.ipynb debug 10:32:06.674: start the kernel, options.disableUI=false for /Users/mv/Code/nb/nb.ipynb debug 10:32:06.674: Start Jupyter Session in kernel.ts with disableUI = false info 10:32:06.675: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0cb7853ece70b40686b4af14f9f0121d44caa159afecbb8bc9ea6a753222ce8bd./Users/mv/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher (Python Path: /Users/mv/Code/nb/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]) for '/Users/mv/Code/nb/nb.ipynb' (disableUI=false) info 10:32:06.675: Checking for server existence. debug 10:32:06.675: Checking for server usability. debug 10:32:06.675: Starting notebook server. info 10:32:06.675: Connecting to server info 10:32:06.675: Launching server info 10:32:06.676: Starting Notebook info 10:32:06.677: Generating custom default config at /var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/0d4ae577-9d40-4518-8953-c59b1233715e/jupyter_notebook_config.py debug 10:32:06.677: Starting Jupyter Notebook Starting Jupyter from ~/Code/nb/.venv/bin/python debug 10:32:06.677: Create activated Env, Class name = fc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envType":"Venv","envName":".venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"architecture":3,"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]","version":{"raw":"3.11.1","major":3,"minor":11,"patch":1,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.11.1 ('.venv': venv)","detailedDisplayName":"Python 3.11.1 ('.venv': venv)","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"}}} debug 10:32:06.677: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:32:06.677: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.677: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.677: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.678: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.678: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 1ms debug 10:32:06.678: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.678: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 10:32:06.679: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.679: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:32:06.679: Create activated Env, Class name = fc, completed in 2ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envType":"Venv","envName":".venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"architecture":3,"sysVersion":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]","version":{"raw":"3.11.1","major":3,"minor":11,"patch":1,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.11.1 ('.venv': venv)","detailedDisplayName":"Python 3.11.1 ('.venv': venv)","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"}},"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"}} debug 10:32:06.679: Getting activated env variables, Class name = _s (started execution), Arg 1: undefined, Arg 2: , Arg 3: true debug 10:32:06.679: Getting activated env variables impl, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:32:06.679: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: undefined, Arg 2: debug 10:32:06.679: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.679: Get Custom Env Variables, Class name = Nc, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.679: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 0ms debug 10:32:06.679: Getting activated env variables from Python, Class name = _s, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:32:06.679: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 0ms with 50 variables debug 10:32:06.680: Getting activated env variables impl, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: debug 10:32:06.680: Getting activated env variables, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: , Arg 3: true info 10:32:06.681: Process Execution: > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/0d4ae577-9d40-4518-8953-c59b1233715e/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 > ~/Code/nb/.venv/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/mv/Code/nb" --config=/var/folders/7g/qc77bj6j63q0gr0mrzvbmxkc0000gn/T/0d4ae577-9d40-4518-8953-c59b1233715e/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 debug 10:32:06.681: Waiting for Jupyter Notebook pyenv: jupyter-notebook: command not found debug 10:32:06.761: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: debug 10:32:06.829: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 debug 10:32:06.832: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. debug 10:32:06.832: pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. warn 10:32:06.833: Error occurred while trying to start the kernel, options.disableUI=false [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } warn 10:32:06.834: Kernel Error, context = start [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 10:32:06.834: Create activated Env, Class name = fc (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} debug 10:32:06.834: Getting activated env variables, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:32:06.834: Getting activated env variables impl, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.834: Getting activated env variables from Python, Class name = _s (started execution), Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.834: Get Custom Env Variables, Class name = Nc (started execution), Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.835: Get Custom Env Variables, Class name = Nc, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: "RunPythonCode" debug 10:32:06.835: Got env vars with python /Users/mv/Code/nb/.venv/bin/python, with env var count 49 and custom env var count 44 in 1ms debug 10:32:06.835: Getting activated env variables from Python, Class name = _s, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.835: Got env vars with python /Users/mv/Code/nb/.venv/bin/python in 1ms with 50 variables debug 10:32:06.836: Getting activated env variables impl, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: debug 10:32:06.836: Getting activated env variables, Class name = _s, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb", Arg 2: , Arg 3: true debug 10:32:06.836: Create activated Env, Class name = fc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb","external":"file:///Users/mv/Code/nb","path":"/Users/mv/Code/nb","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv","path":"/Users/mv/Code/nb/.venv","scheme":"file"},"envName":".venv","uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb/.venv/bin/python","external":"file:///Users/mv/Code/nb/.venv/bin/python","path":"/Users/mv/Code/nb/.venv/bin/python","scheme":"file"},"displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (main, Dec 9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)]"}},"allowEnvironmentFetchExceptions":true} info 10:32:06.836: Process Execution: > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 10:32:12.149: Checking if product is installed, Class name = ru, completed in 5315ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true debug 10:32:12.149: Are Dependencies Installed, Class name = Au, completed in 5315ms, has a truthy return value, Arg 1: "~/Code/nb/.venv/python./Users/mv/Code/nb/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true info 10:32:12.150: Dispose Kernel '/Users/mv/Code/nb/nb.ipynb' associated with '/Users/mv/Code/nb/nb.ipynb' debug 10:32:12.151: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb/nb.ipynb error 10:32:12.151: Error in execution [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } error 10:32:12.152: Error in execution (get message for cell) [Ur [Error]: Jupyter server crashed. Unable to connect. Error code from Jupyter: 127 pyenv: jupyter-notebook: command not found The `jupyter-notebook' command exists in these Python versions: 3.11.1 Note: See 'pyenv help global' for tips on allowing both python2 and python3 to be found. at Mf.rejectStartPromise (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:254562) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:17:255138) at t.n (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:699937) at t.__tryOrUnsub (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700177) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:700070) at t._complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698586) at t.complete (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:698285) at ChildProcess. (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000141019/out/extension.node.js:2:2144483) at Object.onceWrapper (node:events:646:26) at ChildProcess.emit (node:events:538:35) at ChildProcess._handle.onexit (node:internal/child_process:291:12)] { category: 'jupyterconnection' } debug 10:32:12.167: VSCodeNotebookController::handleExecution, Class name = Av, completed in 5494ms, has a falsy return value ```
DonJayamanne commented 1 year ago

and the command portion enables initialization of python's.venv... but no such command is applied to jupyter? Yes and the path variables are slightly different.

Please could you

Next

justmars commented 1 year ago

Add .env file

Python shell

The command /Users/mv/Code/nb/.venv/bin/python -m jupyter notebook --notebook-dir="/Users/mv/Code/nb" works, resulting in opening a browser tab at http://localhost:8889/tree. Exiting this and the terminal, then running the requested commands in an .venv activated python shell produces the following:

(.venv) ➜  nb python                        
Python 3.11.1 (main, Dec  9 2022, 22:35:02) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import os
>>> print(sys.path)
['', '/Users/mv/.pyenv/versions/3.11.1/lib/python311.zip', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11/lib-dynload', '/Users/mv/Code/nb/.venv/lib/python3.11/site-packages']
>>> print(os.getenv("PYTHONPATH"))
None
DonJayamanne commented 1 year ago

Ok, the problem is to do with PyEnv and virtualenvs created with PyEnv, the paths are a little funny and the packages are not getting installed into the isolated virtual env, but require the paths to pyven and loads jupyter from there.

As you can see here

['', '/Users/mv/.pyenv/versions/3.11.1/lib/python311.zip', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11/lib-dynload'

Python will look for the libraries first in pyenv folders, and thats why it works for you. For now I would suggest you add the paths into the .env file, you do not need to add all the paths, just the paths for pyenv and you can use a syntax as follows

PATH=/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH

Check if that works, basically you can avoid hardcoding everything in the .env file In the mean time, i'll see what I can do to get a more generic fix.

DonJayamanne commented 1 year ago

Thanks for providing all of the information, please could you provie the following as well

justmars commented 1 year ago

Thanks for providing all of the information, please could you provie the following as well

  • Open a terminal (in a different folder without the .venv environment Run the following commands and let me know what you get for each of them
which python
python -m pip list
  • Next open the terminal and activate the .vent environment and run the same and let me know what you get (interested in the packages)
which python
python -m pip list

In a separate folder Code with no venv deactivated:

➜  Code which python
/Users/mv/.pyenv/shims/python
➜  Code python -m pip list
Package           Version
----------------- -------
appnope           0.1.3
asttokens         2.1.0
backcall          0.2.0
debugpy           1.6.3
decorator         5.1.1
entrypoints       0.4
executing         1.2.0
ipykernel         6.17.0
ipython           8.6.0
jedi              0.18.1
jupyter_client    7.4.4
jupyter_core      4.11.2
matplotlib-inline 0.1.6
nest-asyncio      1.5.6
packaging         21.3
parso             0.8.3
pexpect           4.8.0
pickleshare       0.7.5
pip               22.3.1
prompt-toolkit    3.0.32
psutil            5.9.3
ptyprocess        0.7.0
pure-eval         0.2.2
Pygments          2.13.0
pyparsing         3.0.9
python-dateutil   2.8.2
pyzmq             24.0.1
setuptools        65.5.0
six               1.16.0
stack-data        0.6.0
tornado           6.2
traitlets         5.5.0
wcwidth           0.2.5

In the Code/nb folder with .venv activated:

➜  Code cd nb 
➜  nb source .venv/bin/activate                  
(.venv) ➜  nb which python
/Users/mv/Code/nb/.venv/bin/python
(.venv) ➜  nb python -m pip list
Package                  Version
------------------------ -----------
anyio                    3.6.2
appnope                  0.1.3
argon2-cffi              21.3.0
argon2-cffi-bindings     21.2.0
arrow                    1.2.3
asttokens                2.2.1
attrs                    22.2.0
backcall                 0.2.0
beautifulsoup4           4.11.1
bleach                   5.0.1
cffi                     1.15.1
comm                     0.1.2
debugpy                  1.6.5
decorator                5.1.1
defusedxml               0.7.1
entrypoints              0.4
executing                1.2.0
fastjsonschema           2.16.2
fqdn                     1.5.1
idna                     3.4
ipykernel                6.20.2
ipython                  8.8.0
ipython-genutils         0.2.0
ipywidgets               8.0.4
isoduration              20.11.0
jedi                     0.18.2
Jinja2                   3.1.2
jsonpointer              2.3
jsonschema               4.17.3
jupyter                  1.0.0
jupyter_client           7.4.9
jupyter-console          6.4.4
jupyter_core             5.1.3
jupyter-events           0.6.3
jupyter_server           2.1.0
jupyter_server_terminals 0.4.4
jupyterlab-pygments      0.2.2
jupyterlab-widgets       3.0.5
MarkupSafe               2.1.1
matplotlib-inline        0.1.6
mistune                  2.0.4
nbclassic                0.4.8
nbclient                 0.7.2
nbconvert                7.2.8
nbformat                 5.7.3
nest-asyncio             1.5.6
notebook                 6.5.2
notebook_shim            0.2.2
packaging                23.0
pandocfilters            1.5.0
parso                    0.8.3
pexpect                  4.8.0
pickleshare              0.7.5
pip                      22.3.1
platformdirs             2.6.2
prometheus-client        0.15.0
prompt-toolkit           3.0.36
psutil                   5.9.4
ptyprocess               0.7.0
pure-eval                0.2.2
pycparser                2.21
Pygments                 2.14.0
pyrsistent               0.19.3
python-dateutil          2.8.2
python-json-logger       2.0.4
PyYAML                   6.0
pyzmq                    25.0.0
qtconsole                5.4.0
QtPy                     2.3.0
rfc3339-validator        0.1.4
rfc3986-validator        0.1.1
Send2Trash               1.8.0
setuptools               65.5.0
six                      1.16.0
sniffio                  1.3.0
soupsieve                2.3.2.post1
stack-data               0.6.2
terminado                0.17.1
tinycss2                 1.2.1
tornado                  6.2
traitlets                5.8.1
uri-template             1.2.0
wcwidth                  0.2.6
webcolors                1.12
webencodings             0.5.1
websocket-client         1.4.2
widgetsnbextension       4.0.5
justmars commented 1 year ago

Ok, the problem is to do with PyEnv and virtualenvs created with PyEnv, the paths are a little funny and the packages are not getting installed into the isolated virtual env, but require the paths to pyven and loads jupyter from there.

As you can see here

['', '/Users/mv/.pyenv/versions/3.11.1/lib/python311.zip', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11', '/Users/mv/.pyenv/versions/3.11.1/lib/python3.11/lib-dynload'

Python will look for the libraries first in pyenv folders, and thats why it works for you. For now I would suggest you add the paths into the .env file, you do not need to add all the paths, just the paths for pyenv and you can use a syntax as follows

PATH=/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH

Check if that works, basically you can avoid hardcoding everything in the .env file In the mean time, i'll see what I can do to get a more generic fix.

Just adding this line in the .env works:

PATH=/Users/mv/Code/nb/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH

If just the pyenv files without the initial .venv, it fails:

PATH=/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH
tcztzy commented 1 year ago

I also face the same problem, but .env file does not fix it. Maybe because I use pyenv create miniconda environment?

DonJayamanne commented 1 year ago

@justmars This would indicate the fact that /Users/mv/.pyenv/shims is not in your current path I'll see what we can do to address that at our end.

DonJayamanne commented 1 year ago

@tcztzy

tcztzy commented 1 year ago

@tcztzy

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

Fixed by reinstall all the virtual environment and clean python extension's cache.

justmars commented 1 year ago

Recent updates apparently break the present .env fix described above:

mkdir nb-test && code nb-test
pyenv local 3.11.2
python -m venv .venv
source .venv/bin/activate
python -m pip install ipykernel notebook jupyter

Add to env

PATH=/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH

Environment:

Notebook

  1. Create nb.ipynb
  2. Add import sys in the first cell
  3. Change kernel to .venv (Python 3.11.2)
  4. Run cell
Logs ```console debug 11:09:14.979: VSCodeNotebookController::handleExecution, Class name = jv (started execution) debug 11:09:14.980: Execute Cell 0 /Users/mv/Code/nb-test/nb.ipynb debug 11:09:14.981: start the kernel, options.disableUI=false for /Users/mv/Code/nb-test/nb.ipynb debug 11:09:14.982: Start Jupyter Session in kernel.ts with disableUI = false info 11:09:14.982: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher (Python Path: /Users/mv/Code/nb-test/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.11.2 (main, Feb 17 2023, 07:20:59) [Clang 14.0.0 (clang-1400.0.29.202)]) for '/Users/mv/Code/nb-test/nb.ipynb' (disableUI=false) debug 11:09:14.984: createNewKernelSession .jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher [I 11:09:14.992 NotebookApp] Creating new notebook in debug 11:09:15.004: Check if a kernel is usable info 11:09:15.004: installMissingDependencies /Users/mv/Code/nb-test/.venv/bin/python, ui.disabled=false for resource '/Users/mv/Code/nb-test/nb.ipynb' debug 11:09:15.005: Create activated Env, Class name = Cl (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb-test/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb-test/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":2,"raw":"3.11.2 (main, Feb 17 2023, 07:20:59) [Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv/bin/python","external":"file:///Users/mv/Code/nb-test/.venv/bin/python","path":"/Users/mv/Code/nb-test/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} debug 11:09:15.005: Getting activated env variables, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: , Arg 3: true debug 11:09:15.005: Getting activated env variables impl, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: debug 11:09:15.005: Getting activated env variables from Python, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: debug 11:09:15.005: Get Custom Env Variables, Class name = Kl (started execution), Arg 1: "~/Code/nb-test", Arg 2: "RunPythonCode" debug 11:09:15.005: Get Custom Env Variables, Class name = Kl, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: "RunPythonCode" debug 11:09:15.005: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python, with env var count 53 in 0ms. PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:09:15.005: Activated Env Variables, PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:09:15.005: Getting activated env variables from Python, Class name = ic, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: debug 11:09:15.005: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python in 0ms with 53 variables debug 11:09:15.006: Getting activated env variables impl, Class name = ic, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: debug 11:09:15.006: Getting activated env variables, Class name = ic, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: , Arg 3: true debug 11:09:15.006: Create activated Env, Class name = Cl, completed in 1ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test","external":"file:///Users/mv/Code/nb-test","path":"/Users/mv/Code/nb-test","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb-test/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb-test/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":2,"raw":"3.11.2 (main, Feb 17 2023, 07:20:59) [Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv/bin/python","external":"file:///Users/mv/Code/nb-test/.venv/bin/python","path":"/Users/mv/Code/nb-test/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} info 11:09:15.007: Process Execution: > ~/Code/nb-test/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb-test/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" debug 11:09:16.159: Checking if product is installed, Class name = Au, completed in 1155ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true debug 11:09:16.160: Are Dependencies Installed, Class name = $u, completed in 1156ms, has a truthy return value, Arg 1: "~/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher", Arg 2: {"a":false,"b":{"j":false,"q":{"a":{"element":{"subscription":{}},"next":{},"prev":{}},"b":{"element":{"subscription":{}},"next":{},"prev":{}},"c":1}}}, Arg 3: true, Return Value: true debug 11:09:16.160: Install Missing Dependencies, Class name = $u, completed in 1156ms, has a falsy return value, Arg 1: , Return Value: 0 info 11:09:16.160: Spec argv[0] updated from '/Users/mv/Code/nb-test/.venv/bin/python' to '/Users/mv/Code/nb-test/.venv/bin/python' debug 11:09:16.160: Getting activated env variables, Class name = ic (started execution), Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: , Arg 3: false debug 11:09:16.160: Getting activated env variables impl, Class name = ic (started execution), Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: debug 11:09:16.161: Getting activated env variables from Python, Class name = ic (started execution), Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: debug 11:09:16.161: Get Custom Env Variables, Class name = Kl (started execution), Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: "RunPythonCode" debug 11:09:16.161: Get Custom Env Variables, Class name = Kl, completed in 0ms, has a truthy return value, Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: "RunPythonCode" debug 11:09:16.161: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python, with env var count 53 in 0ms. PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:09:16.161: Activated Env Variables, PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:09:16.161: Getting activated env variables from Python, Class name = ic, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: debug 11:09:16.161: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python in 1ms with 53 variables debug 11:09:16.162: Getting activated env variables impl, Class name = ic, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: debug 11:09:16.162: Getting activated env variables, Class name = ic, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb-test/nb.ipynb", Arg 2: , Arg 3: false debug 11:09:16.163: Updated kernel spec with environment variables for /Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json [I 11:09:16.186 NotebookApp] Kernel started: 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d, name: pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa debug 11:09:16.195: Waiting for 60000ms idle on (kernel): 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d -> unknown [W 11:09:16.206 NotebookApp] delete /nb-jvsc-1794d363-df4c-48ed-ac16-234b9dd61af70d0a9d04-c774-4f56-9766-f963a5c55eff.ipynb 0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. [E 11:09:16.867 NotebookApp] Uncaught exception in ZMQStream callback Traceback (most recent call last): File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 310, in _handle_kernel_info_reply self._finish_kernel_info(info) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 328, in _finish_kernel_info self._kernel_info_future.set_result(info) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 263, in set_result self.__schedule_callbacks() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 173, in __schedule_callbacks self._loop.call_soon(callback, self, context=ctx) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 763, in call_soon self._check_thread() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 800, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one [E 11:09:16.868 NotebookApp] Uncaught exception in zmqstream callback Traceback (most recent call last): File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 621, in _handle_events self._handle_recv() File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 650, in _handle_recv self._run_callback(callback, msg) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 310, in _handle_kernel_info_reply self._finish_kernel_info(info) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 328, in _finish_kernel_info self._kernel_info_future.set_result(info) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 263, in set_result self.__schedule_callbacks() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 173, in __schedule_callbacks self._loop.call_soon(callback, self, context=ctx) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 763, in call_soon self._check_thread() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 800, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one Exception in callback BaseAsyncIOLoop._handle_events(39, 1) handle: source_traceback: Object created at (most recent call last): File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/tornado/gen.py", line 782, in run yielded = self.gen.send(value) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 361, in pre_get future = self.request_kernel_info() File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 281, in request_kernel_info self.kernel_info_channel = km.connect_shell(self.kernel_id) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/jupyter_client/multikernelmanager.py", line 36, in wrapped r = method(*args, **kwargs) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/jupyter_client/ioloop/manager.py", line 30, in wrapped return ZMQStream(socket, self.loop) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 148, in __init__ self._init_io_state() File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 709, in _init_io_state self.io_loop.add_handler(self.socket, self._handle_events, self.io_loop.READ) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/tornado/platform/asyncio.py", line 167, in add_handler self.selector_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/selector_events.py", line 340, in add_reader self._add_reader(fd, callback, *args) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/selector_events.py", line 263, in _add_reader handle = events.Handle(callback, args, self, None) Traceback (most recent call last): File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/tornado/platform/asyncio.py", line 206, in _handle_events handler_func(fileobj, events) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 621, in _handle_events self._handle_recv() File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 650, in _handle_recv self._run_callback(callback, msg) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 310, in _handle_kernel_info_reply self._finish_kernel_info(info) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/notebook/services/kernels/handlers.py", line 328, in _finish_kernel_info self._kernel_info_future.set_result(info) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 263, in set_result self.__schedule_callbacks() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/futures.py", line 173, in __schedule_callbacks self._loop.call_soon(callback, self, context=ctx) File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 763, in call_soon self._check_thread() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 800, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one debug 11:10:16.195: Finished waiting for idle on (kernel): 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d -> unknown error 11:10:16.195: Shutting down after failing to wait for idle on (kernel): 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d -> unknown debug 11:10:16.195: shutdownSession 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d, .jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher - start debug 11:10:16.195: Session can be shutdown .jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher error 11:10:16.197: Failed to change kernel, re-throwing [Hp [Error]: The Jupyter notebook server failed to launch in time at ag.waitForIdleOnSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:119882) at runNextTicks (node:internal/process/task_queues:61:5) at process.processTimers (node:internal/timers:499:9) at async ag.createNewKernelSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:264238) at async ag.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:263113) at async cg.startNew (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:270904) at async a (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234602) at async Im.createNotebookInstance (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234753) at async Im.createNotebook (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:235449) at async _g.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:296120)] { category: 'timeout', kernelConnectionMetadata: Zs { kind: 'startUsingPythonInterpreter', kernelSpec: { specFile: '/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json', interpreterPath: '/Users/mv/Code/nb-test/.venv/bin/python', isRegisteredByVSC: 'registeredByNewVersionOfExt', name: 'pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa', argv: [Array], language: 'python', executable: 'python', display_name: '.venv', metadata: [Object], env: {} }, interpreter: { id: '/Users/mv/Code/nb-test/.venv/bin/python', sysPrefix: '/Users/mv/Code/nb-test/.venv', envPath: [f], displayPath: [Object], envName: '.venv', displayName: '.venv', envType: 'Venv', version: [Object], uri: [f] }, id: '.jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher' } } debug 11:10:16.198: Shutdown session -- complete warn 11:10:16.198: Error occurred while trying to start the kernel, options.disableUI=false [Hp [Error]: The Jupyter notebook server failed to launch in time at ag.waitForIdleOnSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:119882) at runNextTicks (node:internal/process/task_queues:61:5) at process.processTimers (node:internal/timers:499:9) at async ag.createNewKernelSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:264238) at async ag.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:263113) at async cg.startNew (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:270904) at async a (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234602) at async Im.createNotebookInstance (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234753) at async Im.createNotebook (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:235449) at async _g.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:296120)] { category: 'timeout', kernelConnectionMetadata: Zs { kind: 'startUsingPythonInterpreter', kernelSpec: { specFile: '/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json', interpreterPath: '/Users/mv/Code/nb-test/.venv/bin/python', isRegisteredByVSC: 'registeredByNewVersionOfExt', name: 'pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa', argv: [Array], language: 'python', executable: 'python', display_name: '.venv', metadata: [Object], env: {} }, interpreter: { id: '/Users/mv/Code/nb-test/.venv/bin/python', sysPrefix: '/Users/mv/Code/nb-test/.venv', envPath: [f], displayPath: [Object], envName: '.venv', displayName: '.venv', envType: 'Venv', version: [Object], uri: [f] }, id: '.jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher' } } warn 11:10:16.200: Kernel Error, context = start [Hp [Error]: The Jupyter notebook server failed to launch in time at ag.waitForIdleOnSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:119882) at runNextTicks (node:internal/process/task_queues:61:5) at process.processTimers (node:internal/timers:499:9) at async ag.createNewKernelSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:264238) at async ag.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:263113) at async cg.startNew (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:270904) at async a (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234602) at async Im.createNotebookInstance (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234753) at async Im.createNotebook (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:235449) at async _g.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:296120)] { category: 'timeout', kernelConnectionMetadata: Zs { kind: 'startUsingPythonInterpreter', kernelSpec: { specFile: '/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json', interpreterPath: '/Users/mv/Code/nb-test/.venv/bin/python', isRegisteredByVSC: 'registeredByNewVersionOfExt', name: 'pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa', argv: [Array], language: 'python', executable: 'python', display_name: '.venv', metadata: [Object], env: {} }, interpreter: { id: '/Users/mv/Code/nb-test/.venv/bin/python', sysPrefix: '/Users/mv/Code/nb-test/.venv', envPath: [f], displayPath: [Object], envName: '.venv', displayName: '.venv', envType: 'Venv', version: [Object], uri: [f] }, id: '.jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher' } } debug 11:10:16.201: Create activated Env, Class name = Cl (started execution), Arg 1: {"interpreter":{"id":"/Users/mv/Code/nb-test/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb-test/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":2,"raw":"3.11.2 (main, Feb 17 2023, 07:20:59) [Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv/bin/python","external":"file:///Users/mv/Code/nb-test/.venv/bin/python","path":"/Users/mv/Code/nb-test/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} debug 11:10:16.201: Getting activated env variables, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: , Arg 3: true debug 11:10:16.201: Getting activated env variables impl, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: debug 11:10:16.201: Getting activated env variables from Python, Class name = ic (started execution), Arg 1: "~/Code/nb-test", Arg 2: debug 11:10:16.201: Get Custom Env Variables, Class name = Kl (started execution), Arg 1: "~/Code/nb-test", Arg 2: "RunPythonCode" debug 11:10:16.202: Get Custom Env Variables, Class name = Kl, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: "RunPythonCode" debug 11:10:16.202: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python, with env var count 53 in 1ms. PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:10:16.202: Activated Env Variables, PATH value is /Users/mv/Code/nb-test/.venv/bin:/Users/mv/Code/nb-test/.venv/bin:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:$PATH:/Users/mv/.pyenv/shims:/Users/mv/.pyenv:/Users/mv/.local/bin::/opt/homebrew/opt/sqlite/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin and Path value is undefined debug 11:10:16.202: Getting activated env variables from Python, Class name = ic, completed in 1ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: debug 11:10:16.202: Got env vars with python /Users/mv/Code/nb-test/.venv/bin/python in 1ms with 53 variables debug 11:10:16.203: Getting activated env variables impl, Class name = ic, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: debug 11:10:16.203: Getting activated env variables, Class name = ic, completed in 2ms, has a truthy return value, Arg 1: "~/Code/nb-test", Arg 2: , Arg 3: true debug 11:10:16.203: Create activated Env, Class name = Cl, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test","external":"file:///Users/mv/Code/nb-test","path":"/Users/mv/Code/nb-test","scheme":"file"},"interpreter":{"id":"/Users/mv/Code/nb-test/.venv/bin/python","sysPrefix":"/Users/mv/Code/nb-test/.venv","envPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv","path":"/Users/mv/Code/nb-test/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":11,"patch":2,"raw":"3.11.2 (main, Feb 17 2023, 07:20:59) [Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/mv/Code/nb-test/.venv/bin/python","external":"file:///Users/mv/Code/nb-test/.venv/bin/python","path":"/Users/mv/Code/nb-test/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true} info 11:10:16.204: Process Execution: > ~/Code/nb-test/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" > ~/Code/nb-test/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" [I 11:10:16.209 NotebookApp] Kernel shutdown: 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d [IPKernelApp] ERROR | Exception in control handler: Traceback (most recent call last): File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 337, in process_control await result File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/ipykernel/kernelbase.py", line 914, in shutdown_request content = self.do_shutdown(parent["content"]["restart"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 608, in do_shutdown self.shell.exit_now = True ^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/traitlets/traitlets.py", line 732, in __set__ self.set(obj, value) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/traitlets/traitlets.py", line 721, in set obj._notify_trait(self.name, old_value, new_value) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/traitlets/traitlets.py", line 1505, in _notify_trait self.notify_change( File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/traitlets/traitlets.py", line 1517, in notify_change return self._notify_observers(change) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/traitlets/traitlets.py", line 1564, in _notify_observers c(event) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/ipykernel/zmqshell.py", line 466, in _update_exit_now loop.call_later(0.1, loop.stop) File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/tornado/ioloop.py", line 599, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/Code/nb-test/.venv/lib/python3.11/site-packages/tornado/platform/asyncio.py", line 228, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 727, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 742, in call_at self._check_thread() File "/Users/mv/.pyenv/versions/3.11.2/lib/python3.11/asyncio/base_events.py", line 800, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one debug 11:10:16.378: Checking if product is installed, Class name = Au, completed in 177ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true debug 11:10:16.378: Are Dependencies Installed, Class name = $u, completed in 177ms, has a truthy return value, Arg 1: "~/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true info 11:10:16.380: Dispose Kernel '/Users/mv/Code/nb-test/nb.ipynb' associated with '/Users/mv/Code/nb-test/nb.ipynb' debug 11:10:16.380: Kernel got disposed, hence there is no longer a kernel associated with /Users/mv/Code/nb-test/nb.ipynb error 11:10:16.381: Error in execution [Hp [Error]: The Jupyter notebook server failed to launch in time at ag.waitForIdleOnSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:119882) at runNextTicks (node:internal/process/task_queues:61:5) at process.processTimers (node:internal/timers:499:9) at async ag.createNewKernelSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:264238) at async ag.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:263113) at async cg.startNew (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:270904) at async a (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234602) at async Im.createNotebookInstance (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234753) at async Im.createNotebook (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:235449) at async _g.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:296120)] { category: 'timeout', kernelConnectionMetadata: Zs { kind: 'startUsingPythonInterpreter', kernelSpec: { specFile: '/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json', interpreterPath: '/Users/mv/Code/nb-test/.venv/bin/python', isRegisteredByVSC: 'registeredByNewVersionOfExt', name: 'pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa', argv: [Array], language: 'python', executable: 'python', display_name: '.venv', metadata: [Object], env: {} }, interpreter: { id: '/Users/mv/Code/nb-test/.venv/bin/python', sysPrefix: '/Users/mv/Code/nb-test/.venv', envPath: [f], displayPath: [Object], envName: '.venv', displayName: '.venv', envType: 'Venv', version: [Object], uri: [f] }, id: '.jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher' } } debug 11:10:16.382: Start cell 0 execution @ undefined error 11:10:16.382: Error in execution (get message for cell) [Hp [Error]: The Jupyter notebook server failed to launch in time at ag.waitForIdleOnSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:119882) at runNextTicks (node:internal/process/task_queues:61:5) at process.processTimers (node:internal/timers:499:9) at async ag.createNewKernelSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:264238) at async ag.connect (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:263113) at async cg.startNew (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:270904) at async a (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234602) at async Im.createNotebookInstance (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:234753) at async Im.createNotebook (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:235449) at async _g.createJupyterSession (/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/out/extension.node.js:17:296120)] { category: 'timeout', kernelConnectionMetadata: Zs { kind: 'startUsingPythonInterpreter', kernelSpec: { specFile: '/Users/mv/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.2.1000491010/temp/jupyter/kernels/pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa/kernel.json', interpreterPath: '/Users/mv/Code/nb-test/.venv/bin/python', isRegisteredByVSC: 'registeredByNewVersionOfExt', name: 'pythonjvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa', argv: [Array], language: 'python', executable: 'python', display_name: '.venv', metadata: [Object], env: {} }, interpreter: { id: '/Users/mv/Code/nb-test/.venv/bin/python', sysPrefix: '/Users/mv/Code/nb-test/.venv', envPath: [f], displayPath: [Object], envName: '.venv', displayName: '.venv', envType: 'Venv', version: [Object], uri: [f] }, id: '.jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher' } } debug 11:10:16.403: End cell 0 execution @ undefined, started @ undefined, elapsed time = 0s debug 11:10:16.403: VSCodeNotebookController::handleExecution, Class name = jv, completed in 61424ms, has a falsy return value debug 11:10:17.203: shutdownSession 65d2e5c6-8f5a-49a3-b2b4-64eb4ea8865d, .jvsc74a57bd0e94dae5d885b1eae5d11d638704542feaf48a68e3a55c5dbd8e56529518a32fa./Users/mv/Code/nb-test/.venv/python./Users/mv/Code/nb-test/.venv/python.-m#ipykernel_launcher - shutdown complete ```
DonJayamanne commented 1 year ago

@justmars looks like you are running into an upstream issue see here https://github.com/jupyter/notebook/issues/6721 See here for a work around https://github.com/microsoft/vscode-jupyter/issues/12775#issuecomment-1447175314

DonJayamanne commented 1 year ago

Closing this as this should be fixed in the latest pre-release version of the Jupyter extesnsion.