VS Code Insiders Jupyter extension cannot open Jupyter Notebooks after 1.56 update
See original GitHub issueEnvironment data
- VS Code version: Insiders 1.56
- Jupyter Extension version (available under the Extensions sidebar): v2021.6.755784270
- Python Extension version (available under the Extensions sidebar): v2021.4.765268190
- OS (Windows | Mac | Linux distro) and version: Windows 10 Enterprise version 10.0.18363
- Python and/or Anaconda version: Python 3.7.10 conda 4.10.1
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jupyter server running: Local and Remote
Expected behaviour
Jupyter notebooks are opened with no issues
Actual behaviour
Error Message: Cannot open resource with notebook editor type ‘jupyter-notebook’, please check if you have the right extension installed or enabled.
Error Message from Jupyter extension: Extension activation failed, run the ‘Developer: Toggle Developer Tools’ command for more information.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Open VS Code Insiders
- Open any Jupyter Notebook
Logs
Output for Jupyter
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Jupyter
)
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'jupyterEnhancedDataViewer'
User belongs to experiment group 'NativeNotebookEditor'
Error 2021-04-21 09:55:19: extension activation failed [TypeError: this.notebook.onDidChangeActiveNotebookKernel is not a function
at new T (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:49:656347)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239967)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at Array.map (<anonymous>)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239737)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:238120
at Array.map (<anonymous>)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:238092
at Array.map (<anonymous>)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239737)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at Object.t.resolve (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239435)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:230532
at e._get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:230298)
at e.get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:229010)
at a.get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:49:819305)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:273220
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:32:773548
at async t.activate (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:32:773235)
at async Promise.all (index 0)]
Error 2021-04-21 09:55:19: Failed to active the Jupyter Extension [TypeError: this.notebook.onDidChangeActiveNotebookKernel is not a function
at new T (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:49:656347)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239967)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at Array.map (<anonymous>)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239737)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:238120
at Array.map (<anonymous>)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:238092
at Array.map (<anonymous>)
at Object.t.resolveInstance (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239737)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239172
at Object.t.resolve (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:239435)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:230532
at e._get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:230298)
at e.get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:229010)
at a.get (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:49:819305)
at c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:47:273220
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:32:773548
at async t.activate (c:\Users\ejseglo\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.6.755784270\out\client\extension.js:32:773235)
at async Promise.all (index 0)]
Info 2021-04-21 09:55:19: Found existing keyfile at c:\Users\ejseglo\AppData\Roaming\Code - Insiders\User\globalStorage\ms-toolsai.jupyter\nbsecret
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Unable to open existing and new Jupyter Notebooks #5794
The only workaround I've found is to open the notebook from de "File" menu of VSC, but by doble-clicking the file it's not...
Read more >Cannot open jupyter notebook in VSCode - Stack Overflow
I understand that the Jupyter extension is not maintained. I just use the python extension now. I received this info from the vscode ......
Read more >Working with Jupyter Notebooks in Visual Studio Code
Create, open, and save Jupyter Notebooks · Work with Jupyter code cells · View, inspect, and filter variables using the Variable Explorer and...
Read more >Visual Studio Code 1.58.0 Release - GitClear
Jupyter Interactive window - Run Jupyter code directly in an interactive window. Jupyter notebook debugging - Debug Jupyter notebook code from ...
Read more >Running Julia (Jupyter) Notebooks inside VSCode - VS Code
It is actually possible to run a jupyter notebook inside vscode. With the Python language vscode extension, you will be able to create...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just pushed a new version. The last three digits of the extension should end with 982 to know that you got the most recent version (it can sometimes take a bit longer to show up on the Extension tab). Coming in a bit hot, so we might see some issues here (and widgets will not be working for a bit) just create a new issue to report them, or you can bump on this thread.
Yeah, the recent update made some big changes with how kernels are located and loaded with VS Code Native notebooks. When we push our update this morning there might be some issues with automatic kernel selection and the kernels listed in the selection dropdown. Widget support will probably also be broken for a little bit. We’ll get it fixed up as quick as we can.