Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

VSCode hangs on pixi env activation #15831

Closed
cdeil opened this issue Jul 7, 2024 · 7 comments
Closed

VSCode hangs on pixi env activation #15831

cdeil opened this issue Jul 7, 2024 · 7 comments
Assignees
Labels
notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) perf Performance issues

Comments

@cdeil
Copy link

cdeil commented Jul 7, 2024

Type: Bug

This is follow-up to microsoft/vscode-python#22968 (comment) cc @baszalmstra and @maresb

Behaviour

Steps to reproduce:

  1. Activate pre-release of Python extension that has the pixi support from Add locator for pixi environments vscode-python#22968
  2. Clone Python Panel repo and follow instructions here to install default pixi env https://holoviz-dev.github.io/panel/developer_guide/index.html#pixi
  3. Open this examples Panel notebook and try to execute the first cell, and when asked which Python env to use select the pixi default env https://github.com/holoviz/panel/blob/main/examples/gallery/hvplot_explorer.ipynb
  4. The "Connecting to kernel" info hangs and VSCode becomes mostly unresponsive.

Screenshot

Screenshot 2024-07-07 at 08 00 51

Diagnostic data

Opening the process explorer shows that two pixi shell-hook are running for minutes at high CPU usage. I did not try to debug what they are doing, but something is wrong.

Extension version: 2024.11.2024070502
VS Code version: Code 1.91.0 (Universal) (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:54:18.541Z)
OS version: Darwin arm64 23.5.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda):
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
  • Value of the python.languageServer setting: Pylance
User Settings


condaPath: "<placeholder>"

languageServer: "Pylance"

experiments
• enabled: false

Installed Extensions
Extension Name Extension Id Version
.NET Install Tool ms-dotnettools.vscode-dotnet-runtime 2.0.8
ascii-unicode-escape yaruson.ascii-unicode-escape 0.1.0
Azure Account ms-vscode.azure-account 0.12.0
Azure App Service ms-azuretools.vscode-azureappservice 0.25.2
Azure Developer CLI ms-azuretools.azure-dev 0.8.3
Azure Resources ms-azuretools.vscode-azureresourcegroups 0.9.1
CodeLLDB vadimcn.vscode-lldb 1.10.0
Data Wrangler ms-toolsai.datawrangler 1.4.1
Django batisteo.vscode-django 1.15.0
Draw.io Integration hediet.vscode-drawio 1.6.6
Even Better TOML tamasfe.even-better-toml 0.19.2
Evidence Evidence.evidence-vscode 1.5.1
Excel Viewer GrapeCity.gc-excelviewer 4.2.59
Git Graph mhutchie.git-graph 1.30.0
GitHub Copilot GitHub.copilot 1.211.0
GitHub Copilot Chat GitHub.copilot-chat 0.17.0
JavaScript Debugger ms-vscode.js-debug 1.91.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
JSON Lines Alpha4.jsonl 0.0.1
Jupyter ms-toolsai.jupyter 2024.6.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.18
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Live Server ritwickdey.LiveServer 5.7.9
Malloy malloydata.malloy-vscode 0.2.1717689082
Playwright Test for VSCode ms-playwright.playwright 1.1.7
Prettier - Code formatter esbenp.prettier-vscode 10.4.0
Pylance ms-python.vscode-pylance 2024.6.1
Python ms-python.python 2024.11.2024070502
Python Debugger ms-python.debugpy 2024.6.0
Quarto quarto.quarto 1.113.0
Rainbow CSV mechatroner.rainbow-csv 3.12.0
Ruff charliermarsh.ruff 2024.30.0
rust-analyzer rust-lang.rust-analyzer 0.3.2020
Shiny Posit.shiny 1.0.0
Svelte for VS Code svelte.svelte-vscode 108.5.4
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
VS Code Speech ms-vscode.vscode-speech 0.10.0
System Info
Item Value
CPUs Apple M1 Pro (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 4, 5
Memory (System) 16.00GB (1.36GB free)
Process Argv
Screen Reader no
VM 0%
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jul 7, 2024
@brettcannon brettcannon removed the triage-needed Issue needs to be triaged label Jul 8, 2024
@brettcannon brettcannon transferred this issue from microsoft/vscode-python Jul 8, 2024
@DonJayamanne
Copy link
Contributor

Please could you enable logging as follows:

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

@DonJayamanne DonJayamanne self-assigned this Jul 9, 2024
@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) perf Performance issues labels Jul 9, 2024
@cdeil
Copy link
Author

cdeil commented Jul 10, 2024

At first I got very confusing output and my Macbook became sluggish for 5-10 minutes, the MacOS Activity Monitor indicating two pixi processes running at 100% CPU and presumably tons of disk I/O since other apps got very slow and sluggish as well (e.g. the Terminal app) and I have many cores.

However then eventually actually it seems those pixi processes finished and it started to work.

Unfortunately I did not capture the original trace.

Here's the trace I get now with it working as expected I presume:
https://gist.github.com/cdeil/37358a9898bd2c572e092a04e133e6b3

Are you able to reproduce the issue if following the step by step instructions in the issue description?

@DonJayamanne
Copy link
Contributor

Show Logs
Visual Studio Code (1.91.0, undefined, desktop)
Jupyter Extension Version: 2024.6.0.
Python Extension Version: 2024.10.0.
Pylance Extension Version: 2024.7.1.
Platform: darwin (arm64).
Workspace folder ~/code/oss/panel, Home = /Users/cdeil
07:21:37.175 [info] Telemetry level is off
07:21:37.175 [info] Experiments are disabled, only manually opted experiments are active.
07:21:37.234 [debug] Start refreshing Kernel Picker (1720588897234)
07:21:37.245 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
07:21:37.246 [trace] Search for KernelSpecs in Interpreter /usr/local/bin/python3
07:21:37.247 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred-cem/bin/python
07:21:37.247 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/bin/python
07:21:37.247 [trace] Search for KernelSpecs in Interpreter /opt/homebrew/bin/python3
07:21:37.247 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hm-data-browser/bin/python
07:21:37.248 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hm-panel/bin/python
07:21:37.248 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred/bin/python
07:21:37.249 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred-data/bin/python
07:21:37.249 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/tpy/bin/python
07:21:37.249 [trace] Search for KernelSpecs in Interpreter /opt/homebrew/bin/python3.11
07:21:37.249 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred2/bin/python
07:21:37.249 [trace] Search for KernelSpecs in Interpreter ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:37.250 [debug] Get Custom Env Variables, Class name = Sm, completed in 16ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
07:21:37.250 [debug] Jupyter Paths /kernels: 
07:21:37.250 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/Library/Jupyter/kernels
07:21:37.292 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred-cem/bin/python for interpreter ~/anaconda3/envs/hpred-cem/bin/python (KernelSpec file ~/anaconda3/envs/hpred-cem/share/jupyter/kernels/python3/kernel.json)
07:21:37.293 [trace] Hiding default KernelSpec ~/anaconda3/bin/python for interpreter ~/anaconda3/bin/python (KernelSpec file ~/anaconda3/share/jupyter/kernels/python3/kernel.json)
07:21:37.293 [trace] Hiding default KernelSpec ~/anaconda3/envs/hm-data-browser/bin/python for interpreter ~/anaconda3/envs/hm-data-browser/bin/python (KernelSpec file ~/anaconda3/envs/hm-data-browser/share/jupyter/kernels/python3/kernel.json)
07:21:37.295 [trace] Hiding default KernelSpec ~/anaconda3/envs/hm-panel/bin/python for interpreter ~/anaconda3/envs/hm-panel/bin/python (KernelSpec file ~/anaconda3/envs/hm-panel/share/jupyter/kernels/python3/kernel.json)
07:21:37.295 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred/bin/python for interpreter ~/anaconda3/envs/hpred/bin/python (KernelSpec file ~/anaconda3/envs/hpred/share/jupyter/kernels/python3/kernel.json)
07:21:37.295 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred-data/bin/python for interpreter ~/anaconda3/envs/hpred-data/bin/python (KernelSpec file ~/anaconda3/envs/hpred-data/share/jupyter/kernels/python3/kernel.json)
07:21:37.296 [trace] Hiding default KernelSpec ~/anaconda3/envs/tpy/bin/python for interpreter ~/anaconda3/envs/tpy/bin/python (KernelSpec file ~/anaconda3/envs/tpy/share/jupyter/kernels/python3/kernel.json)
07:21:37.296 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred2/bin/python for interpreter ~/anaconda3/envs/hpred2/bin/python (KernelSpec file ~/anaconda3/envs/hpred2/share/jupyter/kernels/python3/kernel.json)
07:21:37.296 [trace] Hiding default KernelSpec ~/code/oss/panel/.pixi/envs/default/bin/python for interpreter ~/code/oss/panel/.pixi/envs/default/bin/python (KernelSpec file ~/code/oss/panel/.pixi/envs/default/share/jupyter/kernels/python3/kernel.json)
07:21:37.297 [debug] End refreshing Kernel Picker (1720588897234)
07:21:37.299 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher
07:21:37.300 [debug] start the kernel, options.disableUI=true for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:37.306 [trace] Registering commtarget jupyter.widget
07:21:37.307 [debug] Controller selection change completed
07:21:37.308 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "RunPythonCode"
07:21:37.314 [info] Starting Kernel (Python Path: ~/code/oss/panel/.pixi/envs/default/bin/python, VirtualEnv, 3.12.4) for '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb' (disableUI=true)
07:21:37.314 [trace] Creating raw notebook for resource '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb'
07:21:37.321 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "RunPythonCode"
07:21:37.363 [debug] Launching kernel .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb in //Users/~/code/oss/panel/examples/gallery with ports 9001, 9000, 9004, 9002, 9003
07:21:37.567 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb" is ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:37.917 [debug] Got env vars from Python Ext in 596ms for ~/code/oss/panel/.pixi/envs/default/bin/python, with env var count 75.
07:21:37.918 [trace] Prepend PATH with python bin for ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:37.918 [debug] Getting activated env variables, Class name = pd, completed in 597ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Arg 3: undefined
07:21:37.920 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
07:21:37.922 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -m ipykernel_launcher --f=/Users/~/Library/Jupyter/runtime/kernel-v2-332530ao8fORweM2c.json
    > cwd: //Users/~/code/oss/panel/examples/gallery
07:21:37.922 [debug] Kernel process 33504.
07:21:37.925 [debug] Got env vars from Python Ext in 617ms for ~/code/oss/panel/.pixi/envs/default/bin/python, with env var count 75.
07:21:37.926 [trace] Prepend PATH with python bin for ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:37.926 [debug] Getting activated env variables, Class name = pd, completed in 618ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Arg 3: undefined
07:21:37.928 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -m pip list
07:21:38.211 [trace] ipykernel version & path 6.29.4, ~/code/oss/panel/.pixi/envs/default/lib/python3.12/site-packages/ipykernel/__init__.py for ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:38.500 [debug] Kernel output 33504: To connect another client to this kernel, use:
--existing kernel-v2-332530ao8fORweM2c.json
07:21:38.510 [trace] Conda file is conda
07:21:38.541 [debug] Waiting for Raw Session to be ready in postStartRawSession
07:21:38.541 [debug] Waiting for Raw session to be ready, status: connected
07:21:38.541 [trace] Raw session connected
07:21:38.542 [debug] Waited for Raw session to be ready & got status: connected
07:21:38.542 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
07:21:38.542 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
07:21:38.542 [debug] Sending request for kernelInfo
07:21:38.618 [trace] Got response for requestKernelInfo
07:21:38.618 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 76ms
07:21:38.619 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
07:21:38.631 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
07:21:38.632 [trace] Started running kernel initialization for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:38.632 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
07:21:38.638 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
07:21:38.639 [trace] Determined IPyWidgets Version as undefined
07:21:38.639 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
07:21:38.648 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
07:21:38.648 [debug] Requesting Kernel info
07:21:38.649 [trace] Got Kernel info
07:21:38.649 [trace] End running kernel initialization, now waiting for idle
07:21:38.649 [trace] Waiting for idle on (kernel): 4c02a988-2a09-4a4c-865a-3ec1d67f2439 -> idle
07:21:38.649 [trace] Finished waiting for idle on (kernel): 4c02a988-2a09-4a4c-865a-3ec1d67f2439 -> idle
07:21:38.650 [trace] End running kernel initialization, session is idle
07:21:38.650 [trace] Registering Kernel Completion Provider from kernel default (Python 3.12.4) for language python
07:21:38.651 [trace] IPyWidgetScriptSource.initialize
07:21:38.651 [info] Kernel successfully started
07:21:38.652 [debug] getDataDirsImpl, Class name = Mr (started execution), Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python"
07:21:38.652 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
07:21:38.652 [debug] Jupyter Paths : 
07:21:38.654 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
07:21:38.676 [debug] getDataDirsImpl, Class name = Mr, completed in 24ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Return Value: <Uri:/Users/~/Library/Jupyter>, <Uri:/Users/~/code/oss/panel/.pixi/envs/default/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
07:21:43.279 [debug] Handle Execution of Cells 0 for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:43.280 [trace] Cell Index:0 sent to kernel
07:21:43.284 [trace] Start cell 0 execution @ 1720588903284 (clear output)
07:21:43.286 [debug] Kernel acknowledged execution of cell 0 @ 1720588903284
07:21:43.291 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb" is ~/code/oss/panel/.pixi/envs/default/bin/python
07:21:44.403 [warn] Cell completed with errors Qd [Error]: No module named 'hvplot'
    at n.execute (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:297:4958) {
  ename: 'ModuleNotFoundError',
  evalue: "No module named 'hvplot'",
  traceback: [
    '\x1B[0;31m---------------------------------------------------------------------------\x1B[0m',
    '\x1B[0;31mModuleNotFoundError\x1B[0m                       Traceback (most recent call last)',
    'Cell \x1B[0;32mIn[1], line 4\x1B[0m\n' +
      '\x1B[1;32m      2\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mpanel\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m \x1B[38;5;21;01mpn\x1B[39;00m\n' +
      '\x1B[1;32m      3\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mpandas\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m \x1B[38;5;21;01mpd\x1B[39;00m\n' +
      '\x1B[0;32m----> 4\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mhvplot\x1B[39;00m\x1B[38;5;21;01m.\x1B[39;00m\x1B[38;5;21;01mpandas\x1B[39;00m\n' +
      "\x1B[1;32m      6\x1B[0m pn\x1B[38;5;241m.\x1B[39mextension(template\x1B[38;5;241m=\x1B[39m\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mfast\x1B[39m\x1B[38;5;124m'\x1B[39m)\n" +
      "\x1B[1;32m      8\x1B[0m pn\x1B[38;5;241m.\x1B[39mstate\x1B[38;5;241m.\x1B[39mtemplate\x1B[38;5;241m.\x1B[39mtitle \x1B[38;5;241m=\x1B[39m \x1B[38;5;124m'\x1B[39m\x1B[38;5;124mhvPlot Explorer\x1B[39m\x1B[38;5;124m'\x1B[39m\n",
    "\x1B[0;31mModuleNotFoundError\x1B[0m: No module named 'hvplot'"
  ]
}
07:21:44.404 [trace] Cell 0 completed in 1.119s (start: 1720588903284, end: 1720588904403)
07:21:44.404 [trace] Cell 0 executed with an error
07:21:51.496 [info] Disposing kernel .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher for notebook ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb due to selection of another kernel or closing of the notebook
07:21:51.496 [info] Dispose Kernel '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb' associated with '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb'
07:21:51.497 [debug] Cancel pending cells
07:21:51.498 [debug] Shutdown session 4c02a988-2a09-4a4c-865a-3ec1d67f2439, .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher - start called from Error: 
    at E_.shutdown (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:1140)
    at E_.dispose (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:623)
    at Ss (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:115:867)
    at e (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:285:31789)
    at YD.dispose (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:285:32034)
    at n.onDidChangeSelectedNotebooks (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:89538)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.$acceptNotebookAssociation (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:232513)
    at S (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:5986)
    at S.Q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:5752)
    at S.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:4778)
    at S.L (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:3605)
    at n.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:2297)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:14502)
    at n.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:177:8639)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:14502)
    at MessagePortMain.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:177:6765)
    at MessagePortMain.emit (node:events:514:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)
07:21:51.499 [debug] Dispose Kernel process 33504.
07:21:51.503 [debug] Kernel got disposed, hence there is no longer a kernel associated with ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:51.505 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0c00cf37356efc6cb4171bde247c202decb9475f5b750a3a5e6c594067d5d4a09./Users/~/anaconda3/envs/hpred/python./Users/~/anaconda3/envs/hpred/python.-m#ipykernel_launcher
07:21:51.505 [debug] start the kernel, options.disableUI=true for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:51.505 [trace] Registering commtarget jupyter.widget
07:21:51.506 [debug] Controller selection change completed
07:21:51.508 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "RunPythonCode"
07:21:51.511 [info] Starting Kernel (Python Path: ~/anaconda3/envs/hpred/bin/python, Conda, 3.10.13) for '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb' (disableUI=true)
07:21:51.511 [trace] Creating raw notebook for resource '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb'
07:21:51.512 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb" is ~/anaconda3/envs/hpred/bin/python
07:21:51.516 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "RunPythonCode"
07:21:51.528 [debug] KernelProcess Exited 33504, Exit Code - undefined 
07:21:51.552 [debug] Disposed Kernel process 33504.
07:21:51.553 [debug] Shutdown session 4c02a988-2a09-4a4c-865a-3ec1d67f2439, .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher - shutdown complete
07:21:51.554 [debug] Launching kernel .jvsc74a57bd0c00cf37356efc6cb4171bde247c202decb9475f5b750a3a5e6c594067d5d4a09./Users/~/anaconda3/envs/hpred/python./Users/~/anaconda3/envs/hpred/python.-m#ipykernel_launcher for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb in //Users/~/code/oss/panel/examples/gallery with ports 9006, 9005, 9009, 9007, 9008
07:21:52.368 [debug] Got env vars from Python Ext in 852ms for ~/anaconda3/envs/hpred/bin/python, with env var count 70.
07:21:52.368 [trace] Prepend PATH with python bin for ~/anaconda3/envs/hpred/bin/python
07:21:52.368 [debug] Getting activated env variables, Class name = pd, completed in 852ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/anaconda3/envs/hpred/bin/python", Arg 3: undefined
07:21:52.369 [info] Process Execution: ~/anaconda3/envs/hpred/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
07:21:52.370 [info] Process Execution: ~/anaconda3/envs/hpred/bin/python -m ipykernel_launcher --f=/Users/~/Library/Jupyter/runtime/kernel-v2-33253W2NiLbBHPkI8.json
    > cwd: //Users/~/code/oss/panel/examples/gallery
07:21:52.370 [debug] Kernel process 33624.
07:21:52.371 [debug] Got env vars from Python Ext in 864ms for ~/anaconda3/envs/hpred/bin/python, with env var count 70.
07:21:52.371 [trace] Prepend PATH with python bin for ~/anaconda3/envs/hpred/bin/python
07:21:52.372 [debug] Getting activated env variables, Class name = pd, completed in 865ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "~/anaconda3/envs/hpred/bin/python", Arg 3: undefined
07:21:52.372 [info] Process Execution: ~/anaconda3/envs/hpred/bin/python -m pip list
07:21:53.890 [trace] ipykernel version & path 6.29.3, ~/anaconda3/envs/hpred/lib/python3.10/site-packages/ipykernel/__init__.py for ~/anaconda3/envs/hpred/bin/python
07:21:55.873 [debug] Kernel output 33624: To connect another client to this kernel, use:
--existing kernel-v2-33253W2NiLbBHPkI8.json
07:21:56.039 [debug] Waiting for Raw Session to be ready in postStartRawSession
07:21:56.039 [debug] Waiting for Raw session to be ready, status: connected
07:21:56.040 [trace] Raw session connected
07:21:56.040 [debug] Waited for Raw session to be ready & got status: connected
07:21:56.040 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
07:21:56.040 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
07:21:56.040 [debug] Sending request for kernelInfo
07:21:56.045 [trace] Got response for requestKernelInfo
07:21:56.045 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 5ms
07:21:56.045 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
07:21:56.053 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
07:21:56.053 [trace] Started running kernel initialization for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:21:56.054 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
07:21:56.189 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
07:21:56.190 [trace] Determined IPyWidgets Version as 8
07:21:56.190 [trace] Version of IPyWidgets 8 determined after 4.684s
07:21:56.190 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
07:21:56.199 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
07:21:56.199 [debug] Requesting Kernel info
07:21:56.199 [trace] Got Kernel info
07:21:56.200 [trace] End running kernel initialization, now waiting for idle
07:21:56.200 [trace] Waiting for idle on (kernel): 023c1615-2612-4596-a569-6c5e1fba3a5f -> idle
07:21:56.200 [trace] Finished waiting for idle on (kernel): 023c1615-2612-4596-a569-6c5e1fba3a5f -> idle
07:21:56.200 [trace] End running kernel initialization, session is idle
07:21:56.201 [trace] Registering Kernel Completion Provider from kernel hpred (Python 3.10.13) for language python
07:21:56.201 [trace] IPyWidgetScriptSource.initialize
07:21:56.201 [info] Kernel successfully started
07:21:56.202 [debug] getDataDirsImpl, Class name = Mr (started execution), Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/anaconda3/envs/hpred/bin/python"
07:21:56.203 [info] Process Execution: ~/anaconda3/envs/hpred/bin/python /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
07:21:56.232 [debug] getDataDirsImpl, Class name = Mr, completed in 30ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb", Arg 2: "~/anaconda3/envs/hpred/bin/python", Return Value: <Uri:/Users/~/Library/Jupyter>, <Uri:/Users/~/anaconda3/envs/hpred/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
07:21:56.714 [trace] Web view is ready to receive widget messages
07:21:56.722 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:21:56.723 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:21:56.725 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:21:56.725 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:21:56.726 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:21:56.726 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:21:56.727 [trace] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/temp/scripts/81e2bb173080c23855244f889e4a8f4eb83a97404b992fd68daa87375d642f44/jupyter
07:21:56.728 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:21:56.728 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:21:56.728 [trace] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/temp/scripts/81e2bb173080c23855244f889e4a8f4eb83a97404b992fd68daa87375d642f44/jupyter
07:22:00.861 [info] Disposing kernel .jvsc74a57bd0c00cf37356efc6cb4171bde247c202decb9475f5b750a3a5e6c594067d5d4a09./Users/~/anaconda3/envs/hpred/python./Users/~/anaconda3/envs/hpred/python.-m#ipykernel_launcher for notebook ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb due to selection of another kernel or closing of the notebook
07:22:00.861 [info] Dispose Kernel '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb' associated with '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb'
07:22:00.863 [debug] Shutdown session 023c1615-2612-4596-a569-6c5e1fba3a5f, .jvsc74a57bd0c00cf37356efc6cb4171bde247c202decb9475f5b750a3a5e6c594067d5d4a09./Users/~/anaconda3/envs/hpred/python./Users/~/anaconda3/envs/hpred/python.-m#ipykernel_launcher - start called from Error: 
    at E_.shutdown (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:1140)
    at E_.dispose (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:623)
    at Ss (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:115:867)
    at e (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:285:31789)
    at YD.dispose (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:285:32034)
    at n.onDidChangeSelectedNotebooks (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:304:89538)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.$acceptNotebookAssociation (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:232513)
    at S (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:5986)
    at S.Q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:5752)
    at S.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:4778)
    at S.L (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:3605)
    at n.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:151:2297)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:14502)
    at n.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:177:8639)
    at r.B (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
    at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:14502)
    at MessagePortMain.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:177:6765)
    at MessagePortMain.emit (node:events:514:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)
07:22:00.864 [debug] Dispose Kernel process 33624.
07:22:00.869 [debug] Kernel got disposed, hence there is no longer a kernel associated with ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:22:00.875 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher
07:22:00.875 [debug] start the kernel, options.disableUI=true for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:22:00.875 [trace] Registering commtarget jupyter.widget
07:22:00.876 [debug] Controller selection change completed
07:22:00.876 [info] Starting Kernel (Python Path: ~/code/oss/panel/.pixi/envs/default/bin/python, VirtualEnv, 3.12.4) for '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb' (disableUI=true)
07:22:00.877 [trace] Creating raw notebook for resource '~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb'
07:22:00.878 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb" is ~/code/oss/panel/.pixi/envs/default/bin/python
07:22:00.881 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
07:22:00.885 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_IsReadyRequest
07:22:00.886 [trace] Web view is ready to receive widget messages
07:22:00.892 [debug] Launching kernel .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb in //Users/~/code/oss/panel/examples/gallery with ports 9001, 9000, 9004, 9002, 9003
07:22:00.896 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -m ipykernel_launcher --f=/Users/~/Library/Jupyter/runtime/kernel-v2-33253coIkr7Zn8nPQ.json
    > cwd: //Users/~/code/oss/panel/examples/gallery
07:22:00.896 [debug] Kernel process 33656.
07:22:00.897 [debug] KernelProcess Exited 33624, Exit Code - undefined 
07:22:00.897 [debug] Disposed Kernel process 33624.
07:22:00.897 [debug] Shutdown session 023c1615-2612-4596-a569-6c5e1fba3a5f, .jvsc74a57bd0c00cf37356efc6cb4171bde247c202decb9475f5b750a3a5e6c594067d5d4a09./Users/~/anaconda3/envs/hpred/python./Users/~/anaconda3/envs/hpred/python.-m#ipykernel_launcher - shutdown complete
07:22:01.128 [trace] ipykernel version & path 6.29.4, ~/code/oss/panel/.pixi/envs/default/lib/python3.12/site-packages/ipykernel/__init__.py for ~/code/oss/panel/.pixi/envs/default/bin/python
07:22:01.340 [debug] Kernel output 33656: To connect another client to this kernel, use:
--existing kernel-v2-33253coIkr7Zn8nPQ.json
07:22:01.505 [debug] Waiting for Raw Session to be ready in postStartRawSession
07:22:01.505 [debug] Waiting for Raw session to be ready, status: connected
07:22:01.505 [trace] Raw session connected
07:22:01.505 [debug] Waited for Raw session to be ready & got status: connected
07:22:01.505 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
07:22:01.505 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
07:22:01.506 [debug] Sending request for kernelInfo
07:22:01.510 [trace] Got response for requestKernelInfo
07:22:01.510 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 4ms
07:22:01.511 [trace] Executing silently Code (busy) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
07:22:01.517 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
07:22:01.517 [trace] Started running kernel initialization for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:22:01.517 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
07:22:01.521 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
07:22:01.522 [trace] Determined IPyWidgets Version as undefined
07:22:01.522 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
07:22:01.530 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
07:22:01.530 [debug] Requesting Kernel info
07:22:01.530 [trace] Got Kernel info
07:22:01.531 [trace] End running kernel initialization, now waiting for idle
07:22:01.531 [trace] Waiting for idle on (kernel): 8bb2a7cd-bb65-4123-a230-718d98561abb -> idle
07:22:01.531 [trace] Finished waiting for idle on (kernel): 8bb2a7cd-bb65-4123-a230-718d98561abb -> idle
07:22:01.531 [trace] End running kernel initialization, session is idle
07:22:01.532 [trace] Registering Kernel Completion Provider from kernel default (Python 3.12.4) for language python
07:22:01.532 [trace] IPyWidgetScriptSource.initialize
07:22:01.532 [info] Kernel successfully started
07:22:01.536 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:22:01.537 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:22:01.538 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:22:01.538 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:22:01.540 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:22:01.540 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:22:01.541 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:22:01.541 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:22:01.542 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
07:22:01.542 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
07:22:01.547 [trace] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/temp/scripts/6ff7656d017367bf1364726b260badcc4e0133e78820e4d7adc7fbdcbb32c0a8/jupyter
07:22:06.813 [debug] Handle Execution of Cells 0 for ~/code/oss/panel/examples/gallery/hvplot_explorer.ipynb
07:22:06.815 [trace] Cell Index:0 sent to kernel
07:22:06.822 [trace] Start cell 0 execution @ 1720588926822 (clear output)
07:22:06.823 [debug] Kernel acknowledged execution of cell 0 @ 1720588926822
07:22:07.986 [warn] Cell completed with errors Qd [Error]: No module named 'hvplot'
    at n.execute (/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/extension.node.js:297:4958) {
  ename: 'ModuleNotFoundError',
  evalue: "No module named 'hvplot'",
  traceback: [
    '\x1B[0;31m---------------------------------------------------------------------------\x1B[0m',
    '\x1B[0;31mModuleNotFoundError\x1B[0m                       Traceback (most recent call last)',
    'Cell \x1B[0;32mIn[1], line 4\x1B[0m\n' +
      '\x1B[1;32m      2\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mpanel\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m \x1B[38;5;21;01mpn\x1B[39;00m\n' +
      '\x1B[1;32m      3\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mpandas\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m \x1B[38;5;21;01mpd\x1B[39;00m\n' +
      '\x1B[0;32m----> 4\x1B[0m \x1B[38;5;28;01mimport\x1B[39;00m \x1B[38;5;21;01mhvplot\x1B[39;00m\x1B[38;5;21;01m.\x1B[39;00m\x1B[38;5;21;01mpandas\x1B[39;00m\n' +
      "\x1B[1;32m      6\x1B[0m pn\x1B[38;5;241m.\x1B[39mextension(template\x1B[38;5;241m=\x1B[39m\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mfast\x1B[39m\x1B[38;5;124m'\x1B[39m)\n" +
      "\x1B[1;32m      8\x1B[0m pn\x1B[38;5;241m.\x1B[39mstate\x1B[38;5;241m.\x1B[39mtemplate\x1B[38;5;241m.\x1B[39mtitle \x1B[38;5;241m=\x1B[39m \x1B[38;5;124m'\x1B[39m\x1B[38;5;124mhvPlot Explorer\x1B[39m\x1B[38;5;124m'\x1B[39m\n",
    "\x1B[0;31mModuleNotFoundError\x1B[0m: No module named 'hvplot'"
  ]
}
07:22:07.986 [trace] Cell 0 completed in 1.164s (start: 1720588926822, end: 1720588927986)
07:22:07.987 [trace] Cell 0 executed with an error

@DonJayamanne
Copy link
Contributor

Thank you for the logs.
Please can you

  • Close all notebooks
  • Re-load VS Code
  • Open a new notebook and select the new pixi environment as the kernel
  • try running a single cell containing the code print("Hello World")
  • Copy the logs and paste that here.

However then eventually actually it seems those pixi processes finished and it started to work.
Unfortunately I did not capture the original trace.

Please can you try to capture this information.
From what I can tell theres nothing special thats going on here in the Jupyter extension that would cause the CPU to spin 100%.

@cdeil
Copy link
Author

cdeil commented Jul 10, 2024

Visual Studio Code (1.91.0, undefined, desktop)
Jupyter Extension Version: 2024.6.0.
Python Extension Version: 2024.10.0.
Pylance Extension Version: 2024.7.1.
Platform: darwin (arm64).
Workspace folder ~/code/oss/panel, Home = /Users/cdeil
12:35:28.286 [info] Telemetry level is off
12:35:28.286 [info] Experiments are disabled, only manually opted experiments are active.
12:35:28.449 [debug] Start refreshing Kernel Picker (1720607728449)
12:35:28.463 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
12:35:28.464 [trace] Search for KernelSpecs in Interpreter /usr/local/bin/python3
12:35:28.464 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred-cem/bin/python
12:35:28.465 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/bin/python
12:35:28.465 [trace] Search for KernelSpecs in Interpreter /opt/homebrew/bin/python3
12:35:28.466 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hm-data-browser/bin/python
12:35:28.466 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hm-panel/bin/python
12:35:28.467 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred/bin/python
12:35:28.467 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred-data/bin/python
12:35:28.468 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/tpy/bin/python
12:35:28.468 [trace] Search for KernelSpecs in Interpreter /opt/homebrew/bin/python3.11
12:35:28.468 [trace] Search for KernelSpecs in Interpreter ~/anaconda3/envs/hpred2/bin/python
12:35:28.469 [trace] Search for KernelSpecs in Interpreter ~/code/oss/panel/.pixi/envs/default/bin/python
12:35:28.469 [debug] Get Custom Env Variables, Class name = Sm, completed in 20ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
12:35:28.470 [debug] Jupyter Paths /kernels: 
12:35:28.470 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/Library/Jupyter/kernels
12:35:28.932 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred-cem/bin/python for interpreter ~/anaconda3/envs/hpred-cem/bin/python (KernelSpec file ~/anaconda3/envs/hpred-cem/share/jupyter/kernels/python3/kernel.json)
12:35:28.932 [trace] Hiding default KernelSpec ~/anaconda3/envs/hm-panel/bin/python for interpreter ~/anaconda3/envs/hm-panel/bin/python (KernelSpec file ~/anaconda3/envs/hm-panel/share/jupyter/kernels/python3/kernel.json)
12:35:28.933 [trace] Hiding default KernelSpec ~/anaconda3/envs/hm-data-browser/bin/python for interpreter ~/anaconda3/envs/hm-data-browser/bin/python (KernelSpec file ~/anaconda3/envs/hm-data-browser/share/jupyter/kernels/python3/kernel.json)
12:35:28.933 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred-data/bin/python for interpreter ~/anaconda3/envs/hpred-data/bin/python (KernelSpec file ~/anaconda3/envs/hpred-data/share/jupyter/kernels/python3/kernel.json)
12:35:28.933 [trace] Hiding default KernelSpec ~/anaconda3/bin/python for interpreter ~/anaconda3/bin/python (KernelSpec file ~/anaconda3/share/jupyter/kernels/python3/kernel.json)
12:35:28.934 [trace] Hiding default KernelSpec ~/code/oss/panel/.pixi/envs/default/bin/python for interpreter ~/code/oss/panel/.pixi/envs/default/bin/python (KernelSpec file ~/code/oss/panel/.pixi/envs/default/share/jupyter/kernels/python3/kernel.json)
12:35:28.934 [trace] Hiding default KernelSpec ~/anaconda3/envs/tpy/bin/python for interpreter ~/anaconda3/envs/tpy/bin/python (KernelSpec file ~/anaconda3/envs/tpy/share/jupyter/kernels/python3/kernel.json)
12:35:28.935 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred2/bin/python for interpreter ~/anaconda3/envs/hpred2/bin/python (KernelSpec file ~/anaconda3/envs/hpred2/share/jupyter/kernels/python3/kernel.json)
12:35:28.935 [trace] Hiding default KernelSpec ~/anaconda3/envs/hpred/bin/python for interpreter ~/anaconda3/envs/hpred/bin/python (KernelSpec file ~/anaconda3/envs/hpred/share/jupyter/kernels/python3/kernel.json)
12:35:28.935 [debug] End refreshing Kernel Picker (1720607728449)
12:35:29.285 [trace] Conda file is conda
12:35:49.108 [debug] No interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/spam.ipynb"
12:35:49.110 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher
12:35:49.110 [debug] start the kernel, options.disableUI=true for ~/code/oss/panel/examples/gallery/spam.ipynb
12:35:49.182 [trace] Registering commtarget jupyter.widget
12:35:49.183 [debug] Controller selection change completed
12:35:49.184 [info] Starting Kernel (Python Path: ~/code/oss/panel/.pixi/envs/default/bin/python, VirtualEnv, 3.12.4) for '~/code/oss/panel/examples/gallery/spam.ipynb' (disableUI=true)
12:35:49.185 [trace] Creating raw notebook for resource '~/code/oss/panel/examples/gallery/spam.ipynb'
12:35:49.186 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "RunPythonCode"
12:35:49.198 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/spam.ipynb", Arg 2: "RunPythonCode"
12:35:49.214 [debug] Launching kernel .jvsc74a57bd0232b109ff96e0db15e3104533b320dafb62cb6da390edef5723e1e7326d57603./Users/~/code/oss/panel/.pixi/envs/default/python./Users/~/code/oss/panel/.pixi/envs/default/python.-m#ipykernel_launcher for ~/code/oss/panel/examples/gallery/spam.ipynb in //Users/~/code/oss/panel/examples/gallery with ports 9001, 9000, 9004, 9002, 9003
12:35:50.365 [debug] Got env vars from Python Ext in 1179ms for ~/code/oss/panel/.pixi/envs/default/bin/python, with env var count 75.
12:35:50.365 [trace] Prepend PATH with python bin for ~/code/oss/panel/.pixi/envs/default/bin/python
12:35:50.366 [debug] Getting activated env variables, Class name = pd, completed in 1180ms, has a truthy return value, Arg 1: "~/code/oss/panel", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Arg 3: undefined
12:35:50.368 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -m pip list
12:35:50.368 [debug] Got env vars from Python Ext in 1170ms for ~/code/oss/panel/.pixi/envs/default/bin/python, with env var count 75.
12:35:50.368 [trace] Prepend PATH with python bin for ~/code/oss/panel/.pixi/envs/default/bin/python
12:35:50.369 [debug] Getting activated env variables, Class name = pd, completed in 1170ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/spam.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Arg 3: undefined
12:35:50.371 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
12:35:50.372 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python -m ipykernel_launcher --f=/Users/~/Library/Jupyter/runtime/kernel-v2-47140WaK7i3iQc4Nx.json
    > cwd: //Users/~/code/oss/panel/examples/gallery
12:35:50.372 [debug] Kernel process 47429.
12:35:51.171 [trace] ipykernel version & path 6.29.4, ~/code/oss/panel/.pixi/envs/default/lib/python3.12/site-packages/ipykernel/__init__.py for ~/code/oss/panel/.pixi/envs/default/bin/python
12:35:52.483 [debug] Kernel output 47429: To connect another client to this kernel, use:
--existing kernel-v2-47140WaK7i3iQc4Nx.json
12:35:52.660 [debug] Waiting for Raw Session to be ready in postStartRawSession
12:35:52.660 [debug] Waiting for Raw session to be ready, status: connected
12:35:52.660 [trace] Raw session connected
12:35:52.661 [debug] Waited for Raw session to be ready & got status: connected
12:35:52.661 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
12:35:52.661 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
12:35:52.661 [debug] Sending request for kernelInfo
12:35:52.921 [trace] Got response for requestKernelInfo
12:35:52.921 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 260ms
12:35:52.922 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
12:35:52.927 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
12:35:52.927 [trace] Started running kernel initialization for ~/code/oss/panel/examples/gallery/spam.ipynb
12:35:52.928 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
12:35:52.931 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
12:35:52.931 [trace] Determined IPyWidgets Version as undefined
12:35:52.932 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
12:35:52.938 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
12:35:52.939 [debug] Requesting Kernel info
12:35:52.939 [trace] Got Kernel info
12:35:52.939 [trace] End running kernel initialization, now waiting for idle
12:35:52.940 [trace] Waiting for idle on (kernel): 5a69d61f-0ee4-44aa-9884-59a47cbc851e -> idle
12:35:52.940 [trace] Finished waiting for idle on (kernel): 5a69d61f-0ee4-44aa-9884-59a47cbc851e -> idle
12:35:52.940 [trace] End running kernel initialization, session is idle
12:35:52.942 [trace] Registering Kernel Completion Provider from kernel default (Python 3.12.4) for language python
12:35:52.942 [trace] IPyWidgetScriptSource.initialize
12:35:52.943 [info] Kernel successfully started
12:35:52.943 [debug] getDataDirsImpl, Class name = Mr (started execution), Arg 1: "~/code/oss/panel/examples/gallery/spam.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python"
12:35:52.944 [debug] Get Custom Env Variables, Class name = Sm, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
12:35:52.944 [debug] Jupyter Paths : 
12:35:52.945 [info] Process Execution: ~/code/oss/panel/.pixi/envs/default/bin/python /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
12:35:52.964 [debug] getDataDirsImpl, Class name = Mr, completed in 21ms, has a truthy return value, Arg 1: "~/code/oss/panel/examples/gallery/spam.ipynb", Arg 2: "~/code/oss/panel/.pixi/envs/default/bin/python", Return Value: <Uri:/Users/~/Library/Jupyter>, <Uri:/Users/~/code/oss/panel/.pixi/envs/default/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
12:35:53.486 [debug] Jupyter completion time: 16
12:35:53.490 [debug] Execution of code ms-toolsai.jupyter-1 completed in 19ms
12:35:53.496 [trace] Inspecting code print("end=
12:35:53.522 [debug] Execution of code ms-toolsai.jupyter-2 completed in 26ms
12:35:53.525 [debug] Inspected code print("end= in 29ms
12:35:54.320 [trace] Inspecting code print("hasattr
12:35:54.331 [debug] Inspected code print("hasattr in 11ms
12:35:54.332 [debug] Execution of code ms-toolsai.jupyter-3 completed in 10ms
12:35:54.409 [trace] Inspecting code print("help
12:35:54.416 [debug] Inspected code print("help in 7ms
12:35:54.418 [debug] Execution of code ms-toolsai.jupyter-4 completed in 9ms
12:35:54.748 [trace] Inspecting code print("hvplot_explorer.ipynb
12:35:54.754 [debug] Inspected code print("hvplot_explorer.ipynb in 6ms
12:35:54.755 [debug] Execution of code ms-toolsai.jupyter-5 completed in 6ms
12:35:56.593 [debug] Handle Execution of Cells 0 for ~/code/oss/panel/examples/gallery/spam.ipynb
12:35:56.595 [trace] Cell Index:0 sent to kernel
12:35:56.598 [trace] Start cell 0 execution @ 1720607756598 (clear output)
12:35:56.600 [debug] Kernel acknowledged execution of cell 0 @ 1720607756598
12:35:56.602 [trace] Cell 0 completed in 0.004s (start: 1720607756598, end: 1720607756602)
12:35:56.603 [trace] Cell 0 executed successfully
12:35:56.609 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/spam.ipynb" is ~/code/oss/panel/.pixi/envs/default/bin/python
12:35:56.807 [debug] Interpreter for Pylance for Notebook URI "~/code/oss/panel/examples/gallery/spam.ipynb" is ~/code/oss/panel/.pixi/envs/default/bin/python

@cdeil
Copy link
Author

cdeil commented Jul 10, 2024

Indeed I now cannot reproduce the issue.

Maybe you could try following the steps mentioned above?

Otherwise we could close, and if I see the issue again in the future I would then know how to trace and report it better.

@DonJayamanne
Copy link
Contributor

Nope, cannot repro at my end,
Closing for now,
thanks

@DonJayamanne DonJayamanne removed the info-needed Issue requires more information from poster label Jul 10, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) perf Performance issues
Projects
None yet
Development

No branches or pull requests

3 participants