microsoft / vscode-jupyter

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

Intellisense / Autocomplete stops working when trying to call a pandas method #15194

Closed jorregoo closed 8 months ago

jorregoo commented 8 months ago

Environment data

Expected behaviour

When doing my data analysis as usual, I refer to my dataframes as needed and apply some method depending on what I need, expecting that autocompletion / intellisense assist me with the needed methods. Example: I have a dataframe df and I want to count values for column X, so I expect jupyter to aid me when coding df['X'].value_co... .

Actual behaviour

With latest version, intellisense stops working the second I attempt to refer a dataframe column by the notation df['X']. Before referencing a column like that, everything works as expected, but the second I try this, nothing works. I cannot even declare a dataframe from scratch because it doesn't recognize the imported libraries such as pandas.

When I downgrade the jupyter extension version, everything works just fine.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Import pandas as pd
  2. Attempt to create a brand new dataframe from scratch.
  3. Read an excel file into a dataframe
  4. Get data from a column with notation df['X']
  5. Attempt to call an existing method like .unique() or .value_counts()
  6. Attempt to create a brand new dataframe from scratch.

Real Example

jupyter

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

``` XXX ```

guyguyguy1234 commented 8 months ago

Have the same issue. The similar issue was there a few months back. Now again?

DonJayamanne commented 8 months ago

@jorregoo @guyguyguy1234

Please could you enable logging as follows:

jorregoo commented 8 months ago

It seems that goes into a loop. The only output (and it stays outputting the same thing like it's in some sort of loop) I get at the exact moment I attempt to call a column from my dataframe is:

Show Logs ``` 09:38:54.983 [debug] Jupyter completion time: 7 09:38:54.985 [debug] Jupyter completion time: 8 09:38:54.988 [debug] Jupyter completion time: 10 09:38:54.996 [debug] Jupyter completion time: 18 09:38:55.012 [debug] Jupyter completion time: 4 09:38:55.016 [debug] Jupyter completion time: 7 09:38:55.018 [debug] Jupyter completion time: 9 09:38:55.027 [debug] Jupyter completion time: 16 09:38:55.031 [debug] Jupyter completion time: 11 09:38:55.043 [debug] Jupyter completion time: 8 09:38:55.061 [debug] Jupyter completion time: 19 09:38:55.084 [debug] Jupyter completion time: 24 09:38:55.099 [debug] Jupyter completion time: 19 09:38:55.102 [debug] Jupyter completion time: 22 09:38:55.103 [debug] Jupyter completion time: 22 09:38:55.112 [debug] Jupyter completion time: 31 ```
DonJayamanne commented 8 months ago

@jorregoo please call you share the full logs after you have reloaded vscode Thanks

jorregoo commented 8 months ago

File

3-Jupyter.log

Log

Show Logs ``` Visual Studio Code (1.86.2, undefined, desktop) Jupyter Extension Version: 2024.1.1. Python Extension Version: 2024.0.1. Pylance Extension Version: 2024.2.2. Platform: darwin (x64). Workspace folder ~/Documents/Oficina/Zoho/tickets_python, Home = /Users/julio 09:54:38.226 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:38.227 [info] Start refreshing Kernel Picker (1708268078227) 09:54:38.249 [info] Using Pylance 09:54:38.258 [debug] Preferred Remote kernel for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb is undefined 09:54:38.476 [debug] Get Custom Env Variables, Class name = Tm, completed in 250ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:38.476 [debug] Jupyter Paths /kernels: 09:54:38.477 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/Library/Jupyter/kernels 09:54:38.481 [debug] Search for KernelSpecs in Interpreter /usr/bin/python3 09:54:38.482 [debug] Finding Global Python KernelSpecs 09:54:38.483 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3 09:54:38.484 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3.11 09:54:38.485 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/bin/python 09:54:38.485 [debug] Search for KernelSpecs in Interpreter ~/.conda/envs/Datasets-project/bin/python 09:54:38.486 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/datascience/bin/python 09:54:38.487 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/meta-env/bin/python 09:54:38.487 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/mlenv/bin/python 09:54:38.488 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/py310/bin/python 09:54:38.488 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/vennii_env/bin/python 09:54:38.489 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.490 [debug] Full interpreter list is length: 11, /usr/bin/python3::Unknown:/usr/bin/python3, /usr/local/bin/python3::Unknown:/usr/local/bin/python3, /usr/local/bin/python3.11::Unknown:/usr/local/bin/python3.11, ~/opt/anaconda3/bin/python:base:Conda:~/opt/anaconda3/bin/python, ~/.conda/envs/Datasets-project/bin/python:Datasets-project:Conda:~/.conda/envs/Datasets-project/bin/python, ~/opt/anaconda3/envs/datascience/bin/python:datascience:Conda:~/opt/anaconda3/envs/datascience/bin/python, ~/opt/anaconda3/envs/meta-env/bin/python:meta-env:Conda:~/opt/anaconda3/envs/meta-env/bin/python, ~/opt/anaconda3/envs/mlenv/bin/python:mlenv:Conda:~/opt/anaconda3/envs/mlenv/bin/python, ~/opt/anaconda3/envs/py310/bin/python:py310:Conda:~/opt/anaconda3/envs/py310/bin/python, ~/opt/anaconda3/envs/vennii_env/bin/python:vennii_env:Conda:~/opt/anaconda3/envs/vennii_env/bin/python, ~/opt/anaconda3/envs/vennii_openai/bin/python:vennii_openai:Conda:~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.492 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "/usr/local/bin/python3", Arg 3: undefined 09:54:38.492 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.492 [debug] Get Custom Env Variables, Class name = Tm, completed in 0ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.756 [debug] Kernels for interpreter /usr/bin/python3 are .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher 09:54:38.757 [debug] Kernels for interpreter /usr/local/bin/python3 are .jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher 09:54:38.757 [debug] Kernels for interpreter /usr/local/bin/python3.11 are .jvsc74a57bd01a1af0ee75eeea9e2e1ee996c87e7a2b11a0bebd85af04bb136d915cefc0abce./usr/local/bin/python3.11./usr/local/bin/python3.11.-m#ipykernel_launcher 09:54:38.758 [debug] Kernels for interpreter ~/opt/anaconda3/envs/py310/bin/python are .jvsc74a57bd030f80dcf5de74bc7f2ebc4d76e37a9001be0394a91e8991fb529921b92535221.~/opt/anaconda3/envs/py310/python.~/opt/anaconda3/envs/py310/python.-m#ipykernel_launcher 09:54:38.775 [debug] KernelProvider switched kernel to id = .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher 09:54:38.776 [debug] start the kernel, options.disableUI=true for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] Initialize notebook communications for editor ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] Resolving notebook UI Comms (resolve) for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] initialize CommonMessageCoordinator 09:54:38.810 [debug] Registering commtarget jupyter.widget 09:54:38.810 [debug] IPyWidgetMessageDispatcher.initialize 09:54:38.810 [debug] Attempting to determine version of IPyWidgets 09:54:38.811 [debug] Controller selection change completed 09:54:38.811 [debug] Waiting for IPyWidgets version 09:54:38.811 [debug] Waiting for IPyWidgets version promise 09:54:38.816 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:38.816 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.817 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.817 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher (Python Path: ~/opt/anaconda3/envs/datascience/bin/python, Conda, datascience, 3.9.12) for '~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb' (disableUI=true) 09:54:38.818 [debug] Creating raw notebook for resource '~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb' 09:54:38.823 [debug] Loading kernelspec from ~/opt/anaconda3/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/bin/python 09:54:38.823 [debug] Loading kernelspec from ~/.conda/envs/Datasets-project/share/jupyter/kernels/python3/kernel.json for ~/.conda/envs/Datasets-project/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/datascience/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/datascience/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/meta-env/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/meta-env/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/mlenv/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/mlenv/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/vennii_env/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/vennii_env/bin/python 09:54:38.825 [debug] Loading kernelspec from ~/opt/anaconda3/envs/vennii_openai/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.840 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:38.840 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "RunPythonCode" 09:54:38.841 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "RunPythonCode" 09:54:38.920 [debug] Hiding default kernel spec 'Python 3', 'pythonjvsc74a57bd0c059d7c5662c33a8045139440209ab080fe9c55b4084b564093a5b10a5235a75', ~/.conda/envs/Datasets-project/bin/python for interpreter ~/.conda/envs/Datasets-project/bin/python and spec ~/.conda/envs/Datasets-project/share/jupyter/kernels/python3/kernel.json 09:54:38.920 [debug] Kernels for interpreter ~/.conda/envs/Datasets-project/bin/python are .jvsc74a57bd0c059d7c5662c33a8045139440209ab080fe9c55b4084b564093a5b10a5235a75.~/.conda/envs/Datasets-project/python.~/.conda/envs/Datasets-project/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763', ~/opt/anaconda3/envs/datascience/bin/python for interpreter ~/opt/anaconda3/envs/datascience/bin/python and spec ~/opt/anaconda3/envs/datascience/share/jupyter/kernels/python3/kernel.json 09:54:38.921 [debug] Kernels for interpreter ~/opt/anaconda3/envs/datascience/bin/python are .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3', 'pythonjvsc74a57bd0eb610f901ad4272a3f0f803e9ec7d1bac0ea3d01789d8501194857432de98b00', ~/opt/anaconda3/bin/python for interpreter ~/opt/anaconda3/bin/python and spec ~/opt/anaconda3/share/jupyter/kernels/python3/kernel.json 09:54:38.921 [debug] Kernels for interpreter ~/opt/anaconda3/bin/python are .jvsc74a57bd0eb610f901ad4272a3f0f803e9ec7d1bac0ea3d01789d8501194857432de98b00.~/opt/anaconda3/python.~/opt/anaconda3/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd02091aec2cdd9707f684294408c657e0a32be323ead926ddab6e56e17a2f25f0b', ~/opt/anaconda3/envs/mlenv/bin/python for interpreter ~/opt/anaconda3/envs/mlenv/bin/python and spec ~/opt/anaconda3/envs/mlenv/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/mlenv/bin/python are .jvsc74a57bd02091aec2cdd9707f684294408c657e0a32be323ead926ddab6e56e17a2f25f0b.~/opt/anaconda3/envs/mlenv/python.~/opt/anaconda3/envs/mlenv/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd03d5237f330f08261dcffa241e269a2c5d17461494baf42bc0a97332e84750ba6', ~/opt/anaconda3/envs/meta-env/bin/python for interpreter ~/opt/anaconda3/envs/meta-env/bin/python and spec ~/opt/anaconda3/envs/meta-env/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/meta-env/bin/python are .jvsc74a57bd03d5237f330f08261dcffa241e269a2c5d17461494baf42bc0a97332e84750ba6.~/opt/anaconda3/envs/meta-env/python.~/opt/anaconda3/envs/meta-env/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd07df8298a3fae2620c2e46cee1ed4214522852850451e917f13c93ba432749442', ~/opt/anaconda3/envs/vennii_env/bin/python for interpreter ~/opt/anaconda3/envs/vennii_env/bin/python and spec ~/opt/anaconda3/envs/vennii_env/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/vennii_env/bin/python are .jvsc74a57bd07df8298a3fae2620c2e46cee1ed4214522852850451e917f13c93ba432749442.~/opt/anaconda3/envs/vennii_env/python.~/opt/anaconda3/envs/vennii_env/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd038db1b04d2cf7ddd046106009dddfc75fa13bf8287c7d6a2a5f86023f7530855', ~/opt/anaconda3/envs/vennii_openai/bin/python for interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python and spec ~/opt/anaconda3/envs/vennii_openai/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python are .jvsc74a57bd038db1b04d2cf7ddd046106009dddfc75fa13bf8287c7d6a2a5f86023f7530855.~/opt/anaconda3/envs/vennii_openai/python.~/opt/anaconda3/envs/vennii_openai/python.-m#ipykernel_launcher 09:54:38.973 [debug] Launching kernel .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb in ~/Documents/Oficina/Zoho/tickets_python with ports 9016, 9015, 9019, 9017, 9018 09:54:38.989 [warn] Failed to get activated env vars for /usr/local/bin/python3 in 497ms 09:54:38.989 [debug] Create ProcessService, Class name = _m (started execution), Arg 1: undefined 09:54:38.989 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined 09:54:38.995 [debug] Get Custom Env Variables, Class name = Tm, completed in 6ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined 09:54:38.995 [debug] Create ProcessService, Class name = _m, completed in 6ms, has a truthy return value, Arg 1: undefined 09:54:38.996 [info] Process Execution: /usr/local/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");" 09:54:39.040 [debug] USER_SITE for /usr/local/bin/python3 is ~/Library/Python/3.12/bin 09:54:39.040 [debug] Prepend PATH with user site path for /usr/local/bin/python3, user site ~/Library/Python/3.12/bin 09:54:39.040 [debug] Prepend PATH with python bin for /usr/local/bin/python3 09:54:39.040 [debug] Activated Env Variables for /usr/local/bin/python3, PATH value is /usr/local/bin:~/Library/Python/3.12/bin:/usr/local/mysql/bin:~/opt/anaconda3/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:/usr/local/mysql/bin:~/opt/anaconda3/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and Path value is undefined 09:54:39.041 [debug] Getting activated env variables, Class name = mp, completed in 549ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "/usr/local/bin/python3", Arg 3: undefined 09:54:39.042 [info] Process Execution: /usr/local/bin/python3 -m pip list 09:54:39.493 [info] End refreshing Kernel Picker (1708268078227) 09:54:39.887 [debug] Conda file returned by Python Extension is conda 09:54:41.124 [debug] Got env vars with python ~/opt/anaconda3/envs/datascience/bin/python, with env var count 40 in 2308ms. PATH value is /usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and Path value is undefined 09:54:41.125 [debug] Prepend PATH with python bin for ~/opt/anaconda3/envs/datascience/bin/python 09:54:41.125 [debug] Activated Env Variables for ~/opt/anaconda3/envs/datascience/bin/python, PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and Path value is undefined 09:54:41.125 [debug] Getting activated env variables, Class name = mp, completed in 2309ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:41.132 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -m pip list 09:54:41.134 [debug] Got env vars with python ~/opt/anaconda3/envs/datascience/bin/python, with env var count 40 in 2294ms. PATH value is /usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and Path value is undefined 09:54:41.134 [debug] Prepend PATH with python bin for ~/opt/anaconda3/envs/datascience/bin/python 09:54:41.135 [debug] Activated Env Variables for ~/opt/anaconda3/envs/datascience/bin/python, PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and Path value is undefined 09:54:41.135 [debug] Getting activated env variables, Class name = mp, completed in 2295ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:41.140 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)" 09:54:41.141 [debug] Kernel Env Variables for ~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/jupyter/kernels/pythonjvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763/kernel.json, PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet 09:54:41.145 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -m ipykernel_launcher --f=~/Library/Jupyter/runtime/kernel-v2-440830pbaeKL4jhSB.json > cwd: ~/Documents/Oficina/Zoho/tickets_python 09:54:41.145 [info] Kernel process 44309. 09:54:41.394 [debug] ipykernel version & path 6.9.1, ~/opt/anaconda3/envs/datascience/lib/python3.9/site-packages/ipykernel/__init__.py for ~/opt/anaconda3/envs/datascience/bin/python 09:54:42.054 [debug] Kernel output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see https://github.com/ipython/ipython/issues/2049 To connect another client to this kernel, use: --existing kernel-v2-440830pbaeKL4jhSB.json 09:54:42.169 [debug] Waiting for Raw Session to be ready in postStartRawSession 09:54:42.169 [debug] Waiting for Raw session to be ready, status: connected 09:54:42.169 [debug] Raw session connected 09:54:42.169 [debug] Waiting for Raw session to be ready 09:54:42.170 [debug] Waited for Raw session to be ready & got status: connected 09:54:42.170 [debug] Successfully waited for Raw Session to be ready in postStartRawSession 09:54:42.170 [debug] Kernel status is 'unknown' before requesting kernel info and after ready 09:54:42.170 [debug] Sending request for kernelInfo 09:54:42.671 [debug] Did not get a response for requestKernelInfo 09:54:42.671 [debug] Sending request for kernelInfo 09:54:42.704 [debug] Got response for requestKernelInfo 09:54:42.704 [debug] Successfully completed postStartRawSession after 2 attempt(s) in 534ms 09:54:42.706 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys 09:54:42.721 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s) 09:54:42.721 [debug] End sendTelemetryForPythonKernelExecutable after 15ms 09:54:42.721 [debug] Started running kernel initialization for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:42.721 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy 09:54:42.728 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s) 09:54:42.728 [debug] Determined IPyWidgets Version as 7 09:54:42.728 [debug] Version of IPyWidgets 7 determined after 3.918s 09:54:42.730 [debug] Executing silently Code (idle) = import os as _VSCODE_os\nimport sys as _VSCODE_sys\n%cd "/~/Documents/Oficina/Zoho/tickets_ 09:54:42.748 [debug] Executing silently Code (completed) = import os as _VSCODE_os\nimport sys as _VSCODE_sys\n%cd "/~/Documents/Oficina/Zoho/tickets_ with 1 output(s) 09:54:42.748 [debug] Requesting Kernel info 09:54:42.748 [debug] Got Kernel info 09:54:42.748 [debug] End running kernel initialization, now waiting for idle 09:54:42.749 [debug] Waiting for idle on (kernel): 5257b9ed-870d-40dc-adf0-433b7ab773aa -> idle 09:54:42.749 [debug] Finished waiting for idle on (kernel): 5257b9ed-870d-40dc-adf0-433b7ab773aa -> idle 09:54:42.749 [debug] End running kernel initialization, session is idle 09:54:42.750 [info] Registering Kernel Completion Provider from kernel datascience (Python 3.9.12) for language python 09:54:42.751 [debug] IPyWidgetScriptSource.initialize 09:54:42.751 [debug] IPyWidgetMessageDispatcher.initialize 09:54:42.753 [debug] getDataDirsImpl, Class name = Kr (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python" 09:54:42.753 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:42.754 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:42.754 [debug] Jupyter Paths : 09:54:42.758 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/pythonFiles/printJupyterDataDir.py 09:54:42.805 [warn] Got a non-existent Jupyter Data Dir file://~/.local/share/jupyter 09:54:42.805 [debug] getDataDirsImpl, Class name = Kr, completed in 52ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Return Value: , , , 09:54:43.270 [debug] IPyWidgetMessageDispatcher.initialize 09:54:43.270 [debug] Web view is ready to receive widget messages 09:54:43.306 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 09:54:43.306 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 09:54:43.314 [debug] IPyWidgetMessageDispatcher.initialize 09:54:43.315 [debug] IPyWidgetMessageDispatcher.initialize 09:54:43.316 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter 09:54:43.316 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 09:54:43.317 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 09:54:43.317 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter 09:54:43.317 [debug] Widget Message: Received IPyWidget scripts [{"moduleName":"jupyterlab-plotly","scriptUri":"https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index","source":"local"}] 09:54:43.317 [debug] Widget Message: Source for IPyWidget jupyterlab-plotly found in local @ https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index. 09:54:43.317 [debug] Widget Message: Registering IPyWidget jupyterlab-plotly found in https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index. 09:54:43.318 [debug] Widget Message: Received IPyWidget scripts [{"moduleName":"mitosheet","scriptUri":"https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index","source":"local"}] 09:54:43.318 [debug] Widget Message: Source for IPyWidget mitosheet found in local @ https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index. 09:54:43.318 [debug] Widget Message: Registering IPyWidget mitosheet found in https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index. ```
DonJayamanne commented 8 months ago

@jorregoo Thank you for sharing the logs Unfortunately it doesn't look like you tried to replicate the issue when you shared the logs. Please can you try to replicate the issue you are running into and then share the logs.

ms-toolsai-jupyter-insiders.vsix.zip

Before you do that, please can you download the following VSIX and install this, as this provides additional logs.

jorregoo commented 8 months ago

Hi, I've followed the steps exactly as mentioned and extracted de output file for jupyter. I have to mention that when using this version of jupyter and trying to work, the fans of my laptop go really loud an my laptop starts heating up.

Log File:

3-Jupyter.log

DonJayamanne commented 8 months ago

@jorregoo thanks for sharing the logs However it doesn't look like you have installed the extension, the version you have in the logs is still an old version. The version should read 2024.2.0 Please can you try to install the VSIX once again, reload VS Code and replicate the issue and finally share the logs. Thanks

jorregoo commented 8 months ago

Sorry for the trouble. I've reinstalled the updated version for jupyter and the VSIX file for vscode. Here's the file with the jupyter version updated (I've checked the version in the log file): 3-Jupyter.log

Once I replicate the issue, it goes into a loop that forces me into closing vscode in order to retrieve the log file and attach it here.

DonJayamanne commented 8 months ago

@jorregoo Thanks for the logs, I believe I may have resolved, this, please can you try installing this VSIX and share the logs again, even if it does work. Please remember to re-load VS Code.

ms-toolsai-jupyter-insiders.vsix.zip

jorregoo commented 8 months ago

Thanks, it worked. Here's the file with the logs. Can you please let me know what was the issue? 3-Jupyter.log

DonJayamanne commented 8 months ago

Closed as part of this https://github.com/microsoft/vscode-jupyter/pull/15204 Basically there was a race condition and your machine seems to have been hitting it consistently. Possible you have a lot of extensions installed or the like, that was slowing things down exacerbating the race condition.