Vscode-jupyter: Cannot open resource with notebook editor type 'jupyter-notebook'.

Created on 31 Jul 2020  路  6Comments  路  Source: microsoft/vscode-jupyter

Bug: Notebook Editor, Interactive Window, Editor cells

Cannot launch new jupyter-notebook.

Steps to cause the bug to occur

  1. Go to File menu. Click on New File.
  2. Select Jupyter Notebook (Preview).
  3. Error message pops up:
Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled.

Actual behaviour

An empty jupyter-notebook does not open.

Screenshot from 2020-07-31 18-13-51

Expected behaviour

An empty jupyter-notebook gets opened.

Your Jupyter and/or Python environment

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 2020.7.96456
  • VS Code version: 1.47.3
  • Setting python.jediEnabled: true | false
  • Setting python.languageServer: Jedi | Microsoft | None
  • Python and/or Anaconda version: 3.6.9
  • OS: Windows | Mac | Linux (distro): elementary OS 5.1.6 Hera
  • Virtual environment: conda | venv | virtualenv | N/A

Developer Tools Console Output

workbench.desktop.main.js:sourcemap:5140 Overwriting grammar scope name to file mapping for scope source.vala.
Old grammar file: file:///home/joe733/.vscode/extensions/philippejer.vala-grammar-1.0.6/syntaxes/vala.tmLanguage.
New grammar file: file:///home/joe733/.vscode/extensions/prince781.vala-1.0.3/syntaxes/vala.tmLanguage
register @ workbench.desktop.main.js:sourcemap:5140
workbench.desktop.main.js:sourcemap:5140 Overwriting grammar scope name to file mapping for scope source.genie.
Old grammar file: file:///home/joe733/.vscode/extensions/philippejer.vala-grammar-1.0.6/syntaxes/genie.tmLanguage.
New grammar file: file:///home/joe733/.vscode/extensions/prince781.vala-1.0.3/syntaxes/genie.tmLanguage
register @ workbench.desktop.main.js:sourcemap:5140
workbench.desktop.main.js:sourcemap:266 [Extension Host] activating extension
workbench.desktop.main.js:sourcemap:266 [Extension Host] starting language server
2workbench.desktop.main.js:sourcemap:266 [Extension Host] (node:10251) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.desktop.main.js:sourcemap:266
workbench.desktop.main.js:sourcemap:266 [Extension Host] Sync : Connected with user : 'joe733'
7workbench.desktop.main.js:sourcemap:1670   ERR An unknown error occurred. Please consult the log for more details.
workbench.desktop.main.js:sourcemap:4616 Extension Host
workbench.desktop.main.js:sourcemap:4616 {  message: 'Starting Java server with: /usr/lib/jvm/java-11-openjdk-amd64/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar /home/joe733/.vscode/extensions/redhat.java-0.65.0/server/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration /home/joe733/.config/Code/User/globalStorage/redhat.java/0.65.0/config_ss_linux -data /tmp/vscodesws_6f09d/ss_ws',  level: 'info',  timestamp: '2020-07-31 18:10:01.943'}
workbench.desktop.main.js:sourcemap:4616 Extension Host
workbench.desktop.main.js:sourcemap:4616 {  message: 'Starting Java server with: /usr/lib/jvm/java-11-openjdk-amd64/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar /home/joe733/.vscode/extensions/redhat.java-0.65.0/server/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration /home/joe733/.config/Code/User/globalStorage/redhat.java/0.65.0/config_linux -data /tmp/vscodesws_6f09d/jdt_ws',  level: 'info',  timestamp: '2020-07-31 18:10:02.313'}
workbench.desktop.main.js:sourcemap:1670   ERR The request (id: 11, method: 'textDocument/hover') has been cancelled: Error: The request (id: 11, method: 'textDocument/hover') has been cancelled
    at /home/joe733/.vscode/extensions/redhat.java-0.65.0/dist/extension.js:1:76457
    at /home/joe733/.vscode/extensions/redhat.java-0.65.0/dist/extension.js:1:76751
    at Immediate.<anonymous> (/home/joe733/.vscode/extensions/redhat.java-0.65.0/dist/extension.js:1:77112)
    at processImmediate (internal/timers.js:439:21)
workbench.desktop.main.js:sourcemap:3274 List with id 'list_id_15' was styled with a non-opaque background color. This will break sub-pixel antialiasing.
style @ workbench.desktop.main.js:sourcemap:3274
2workbench.desktop.main.js:sourcemap:2947 Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled.
onDidChangeNotification @ workbench.desktop.main.js:sourcemap:2947
workbench.desktop.main.js:sourcemap:2947 Data Science library ipykernel is not installed. Install?
onDidChangeNotification @ workbench.desktop.main.js:sourcemap:2947
workbench.desktop.main.js:sourcemap:3864 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
workbench.desktop.main.js:sourcemap:3864 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-webview-resource://e552b564-8f05-45a9-ae11-5eff2f69bf75/file///tmp/editor.worker.js' cannot be accessed from origin 'vscode-webview://e552b564-8f05-45a9-ae11-5eff2f69bf75'.
workbench.desktop.main.js:sourcemap:266 [Extension Host] Starting WebSocket: RAW/api/kernels/c4c9378b-bdc3-494d-acfa-62668df565e3
workbench.desktop.main.js:sourcemap:266 [Extension Host] Kernel: connected (c4c9378b-bdc3-494d-acfa-62668df565e3)
workbench.desktop.main.js:sourcemap:266 [Extension Host] Kernel: starting (c4c9378b-bdc3-494d-acfa-62668df565e3)
workbench.desktop.main.js:sourcemap:3864 [Embedded Page] Starting WebSocket: BOGUS_PVSC/api/kernels/c4c9378b-bdc3-494d-acfa-62668df565e3
workbench.desktop.main.js:sourcemap:3864 [Embedded Page] Kernel: connected (c4c9378b-bdc3-494d-acfa-62668df565e3)
workbench.desktop.main.js:sourcemap:266 [Extension Host] Starting WebSocket: RAW/api/kernels/3db84822-335b-41c1-b4c9-02aefce32167
workbench.desktop.main.js:sourcemap:266 [Extension Host] Kernel: connected (3db84822-335b-41c1-b4c9-02aefce32167)
workbench.desktop.main.js:sourcemap:266 [Extension Host] Kernel: starting (3db84822-335b-41c1-b4c9-02aefce32167)
workbench.desktop.main.js:sourcemap:3274 List with id 'list_id_23' was styled with a non-opaque background color. This will break sub-pixel antialiasing.
style @ workbench.desktop.main.js:sourcemap:3274
2workbench.desktop.main.js:sourcemap:2947 Cannot open resource with notebook editor type 'jupyter-notebook', please check if you have the right extension installed or enabled.
onDidChangeNotification @ workbench.desktop.main.js:sourcemap:2947
16workbench.desktop.main.js:sourcemap:1670  INFO Setting search error: XHR timeout: 5000ms

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

bug

Most helpful comment

the insiders version of VS Code works for me, but may i know what is the reason ?

The preview notebook editor is only supported in the Insiders version. Once we feel it is stable enough we'll add support for the stable version of VS Code.

All 6 comments

Please could you oensure you ave using the latest Insiders version of VS Code.
The preview feature only works in Insiders version of VS Code.

No, I don't think it's VSCode insider version but it's latest stable.

Version: 1.47.3
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T15:51:39.791Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-42-generic

How do I change to insiders preview from the stable version?

You'll need to download the Insiders version of VS Code separately from: https://code.visualstudio.com/insiders/.

Thanks @DonJayamanne & @joyceerhl. It works like charm in the insider preview. Closing this issue.

the insiders version of VS Code works for me, but may i know what is the reason ?

the insiders version of VS Code works for me, but may i know what is the reason ?

The preview notebook editor is only supported in the Insiders version. Once we feel it is stable enough we'll add support for the stable version of VS Code.

Was this page helpful?
0 / 5 - 0 ratings