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

Support for Remote in IW window #6881

Closed
Tracked by #7168
ghylander opened this issue Jul 28, 2021 · 17 comments
Closed
Tracked by #7168

Support for Remote in IW window #6881

ghylander opened this issue Jul 28, 2021 · 17 comments
Assignees
Labels
candidate Issue identified as probable candidate for fixing in the next release info-needed Issue requires more information from poster interactive-window Impacts interactive window

Comments

@ghylander
Copy link

Issue Type: Bug

i have a .py file i run in an interactive window with cells
first i start a jupyter server in a WSL, then connect to it
when i try to run any cell, i get the error "Invalid response: 501 Not Implemented"

the server is started in the exact same working directory as the visual studio workspace

this doesnt always happen, i have a second jupyter server running in a different directory serving a different workspace and i can run interactive files no problem. Both use the same WSL and interpreter within it

VS Code version: Code - Insiders 1.59.0-insider (e437d424c5e6de97632f5513229c7ebc2cf27a32, 2021-07-28T05:13:47.114Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz (8 x 1190)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 11.70GB (1.06GB free)
Process Argv --crash-reporter-id 4285aea8-8024-49ba-97f2-9d60622a70f0
Screen Reader no
VM 0%
Extensions (11)
Extension Author (truncated) Version
prettier-vscode esb 8.1.0
kite kit 0.147.0
python ms- 2021.8.1054534874-dev
vscode-pylance ms- 2021.7.6-pre.1
jupyter ms- 2021.8.1070546638
remote-containers ms- 0.189.0
remote-ssh ms- 0.65.7
remote-ssh-edit ms- 0.65.7
remote-wsl ms- 0.58.2
vscode-remote-extensionpack ms- 0.21.0
powershell-preview ms- 2021.7.0

(2 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
vspre833:30321513
pythonptprofiler:30281269
vsdfh931:30280409
vshan820:30294714
pythondataviewer:30285072
vscus158:30321503
pythonvsuse255:30319630
vscod805cf:30301675
pythonvspyt200:30323110
vscextlangct:30310089
vsccppwt:30312692
pythonvssor306:30340298
bridge0708:30335490

@ghylander
Copy link
Author

here the output for the 501 not implemented error:

Error 2021-07-28 11:11:13: DataScience Error [_ [Error]: 
	at new o (c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\extension.js:16:23818)
	at new _ (c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\extension.js:24:118194)
	at c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\extension.js:90:236764
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\node_modules\@jupyterlab\services.js:3:545096
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\node_modules\@jupyterlab\services.js:3:536620)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\node_modules\@jupyterlab\services.js:3:545096
  	at runMicrotasks (<anonymous>)
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (c:\Users\gus_h\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.8.1070546638\out\client\node_modules\@jupyterlab\services.js:3:536620)] {
    response: N [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}

here a screenshot of the not working workspace with the interactive window and error message, i tried to run the very first cell with the imports:

image

Here a screenshot of the working worksapce with an executed cell:

image

@joyceerhl joyceerhl transferred this issue from microsoft/vscode Jul 28, 2021
@rebornix rebornix assigned joyceerhl and unassigned rebornix Jul 28, 2021
@joyceerhl
Copy link
Contributor

@ghylander Would you mind sharing steps for how you set up your Jupyter server in WSL so I can try to reproduce the issue?

Did you notice this issue with a recent update, or has this been a problem for some time?

Would you mind providing the full Jupyter output logs as well (not just the specific error callstack)? Thank you!

@greazer greazer added info-needed Issue requires more information from poster interactive-window Impacts interactive window and removed needs-triage labels Jul 29, 2021
@brosand
Copy link

brosand commented Aug 17, 2021

Hi, I am having this problem as well, are there any updates? I can send my logging information

@joyceerhl
Copy link
Contributor

@brosand Please do send any logs you have so we can track this down 😊

@brosand
Copy link

brosand commented Aug 17, 2021

So in the window logs in vscode I see this message:

[2021-08-17 13:11:27.090] [renderer1] [error] NO notebook document for 'vscode-interactive:Interactive-1.interactive': Error: NO notebook document for 'vscode-interactive:Interactive-1.interactive'
	at _.getNotebookDocument (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:85:207776)
	at b.$acceptNotebookAssociation (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:85:221143)
	at h._doInvokeHandler (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:89:12819)
	at h._invokeHandler (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:89:12503)
	at h._receiveRequest (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:89:11159)
	at h._receiveOneMessage (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:89:9943)
	at /gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:89:8039
	at d.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:57:1712)
	at c.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:15825)
	at /gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:104:30060
	at d.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:57:1712)
	at c.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:15825)
	at r._receiveMessage (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:21091)
	at /gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:17969
	at d.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:57:1712)
	at v.acceptChunk (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:13186)
	at /gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:65:12534
	at d.fire (/gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:57:1712)
	at /gpfs/milgram/home/br384/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/out/vs/server/remoteExtensionHostProcess.js:104:19145
	at afterWrite (internal/streams/writable.js:466:5)
	at onwrite (internal/streams/writable.js:446:7)
	at InflateRaw.afterTransform (internal/streams/transform.js:103:3)
	at Zlib.processCallback (zlib.js:586:8)
[2021-08-17 13:11:28.855] [renderer1] [error] Invalid response: 501 Not Implemented: Error: 
	at new o (/gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:16:23818)
	at new _ (/gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:24:118194)
	at /gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:90:236926
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:545096
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:536620)

@brosand
Copy link

brosand commented Aug 18, 2021

So previously I was only having this issue with the interactive window, and not the built in jupyter notebook, which I was able to run last night and this morning. However, I just created a new jupyter instance on my remote server, and upon connecting to it, got the same error with the jupyter notebook. To be clear, with previous jupyter sessions I only had problems with the interactive window, now it's both.

Error: Invalid response: 501 Not Implemented
	at /gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:545096
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/gpfs/milgram/home/br384/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:536620)
[2021-08-18 10:52:25.453] [renderer2] [error] read ECONNRESET: Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:209:20)

Also to clarify, I can manually run code in the interactive window without any problems.

@nprithviraj24
Copy link

Hi, Ubuntu user here. I was having the same issue, I re-installed the jupyter extension package. It is working for me now.

@brosand
Copy link

brosand commented Aug 19, 2021

I was able to solve the issue by opening up a new workspace, but it would be great to know if there is a better solution, the jupyter reinstall did not help me. Also, if it matters, this is all taking place on a remote server

@tobiasmcvey
Copy link

I have the same problem as brosand. Working interactively with python locally works fine, but when connecting interactively to a remote jupyter server I get a 501 not implemented error.

My main window logs

[2021-08-20 13:21:11.602] [renderer3] [error] Invalid response: 501 Not Implemented: Error: 
	at new o (/Users/tobiasmcvey/.vscode/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:16:23818)
	at new _ (/Users/tobiasmcvey/.vscode/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:24:118194)
	at /Users/tobiasmcvey/.vscode/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/extension.js:90:236926
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/tobiasmcvey/.vscode/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:545096
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/tobiasmcvey/.vscode/extensions/ms-toolsai.jupyter-2021.8.1236758218/out/client/node_modules/@jupyterlab/services.js:3:536620)

The rest

OS Macos 11.5.2
VS Code Version: 1.59.1 Commit: 3866c3553be8b268c8a7f8c0482c0c0177aa8bfa Date: 2021-08-19T11:53:52.479Z Electron: 13.1.7 Chrome: 91.0.4472.124 Node.js: 14.16.0 V8: 9.1.269.36-electron.0 OS: Darwin x64 20.6.0
VS Code Extensions Name: Atom One Light Theme Id: akamud.vscode-theme-onelight Description: One Light Theme based on Atom Version: 2.2.3 Publisher: Mahmoud Ali VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=akamud.vscode-theme-onelight

Name: Azure Log Analytics (Kusto) Syntax Highlighting
Id: josin.kusto-syntax-highlighting
Description: Support for the Azure Log Analytics (Kusto) language syntax in Visual Studio Code.
Version: 1.0.1
Publisher: Josef Sin
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=josin.kusto-syntax-highlighting

Name: Better TOML
Id: bungcip.better-toml
Description: Better TOML Language support
Version: 0.3.2
Publisher: bungcip
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=bungcip.better-toml

Name: C/C++
Id: ms-vscode.cpptools
Description: C/C++ IntelliSense, debugging, and code browsing.
Version: 1.5.1
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

Name: Docker
Id: ms-azuretools.vscode-docker
Description: Makes it easy to create, manage, and debug containerized applications.
Version: 1.16.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker

Name: Go
Id: golang.go
Description: Rich Go language support for Visual Studio Code
Version: 0.27.1
Publisher: Go Team at Google
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=golang.Go

Name: Jupyter
Id: ms-toolsai.jupyter
Description: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more.
Version: 2021.8.1236758218
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

Name: Markdown All in One
Id: yzhang.markdown-all-in-one
Description: All you need to write Markdown (keyboard shortcuts, table of contents, auto preview and more)
Version: 3.4.0
Publisher: Yu Zhang
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

Name: Prettier - Code formatter
Id: esbenp.prettier-vscode
Description: Code formatter using prettier
Version: 8.1.0
Publisher: Prettier
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Name: Prettier+
Id: svipas.prettier-plus
Description: Prettier (code formatter) for the VS Code.
Version: 4.2.2
Publisher: Benas Svipas
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=svipas.prettier-plus

Name: Pylance
Id: ms-python.vscode-pylance
Description: A performant, feature-rich language server for Python in VS Code
Version: 2021.8.2
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance

Name: Python
Id: ms-python.python
Description: IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit tests, and more.
Version: 2021.8.1147840270
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Name: Remote - SSH
Id: ms-vscode-remote.remote-ssh
Description: Open any folder on a remote machine using SSH and take advantage of VS Code's full feature set.
Version: 0.65.7
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh

Name: Remote - SSH: Editing Configuration Files
Id: ms-vscode-remote.remote-ssh-edit
Description: Edit SSH configuration files
Version: 0.65.7
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-edit

Name: XML Tools
Id: dotjoshjohnson.xml
Description: XML Formatting, XQuery, and XPath Tools for Visual Studio Code
Version: 2.5.1
Publisher: Josh Johnson
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml

@ghylander
Copy link
Author

I was able to solve the issue by opening up a new workspace, but it would be great to know if there is a better solution, the jupyter reinstall did not help me. Also, if it matters, this is all taking place on a remote server

I too have noticed this
Of course, for apaprent reasons, i would like a fix that does not involve a new workspace

@Waiski
Copy link

Waiski commented Aug 23, 2021

I started getting this today as well after updating to VSCode 1.59. The error appears for both local and remote Jupyter kernels. The code works when copy-pasting into the execution prompt, but running the cell gives the 501 error.

@joyceerhl
Copy link
Contributor

@IvanAntipov
Copy link

I had the same problem ( 501 not implemented). It turned out, that the problem was on the Jupyter server-side, and not on VS code side.

If you have such a problem, first try to run cell in Jupyter web interface.

In my case, restarting of Jupyter server solved the problem.

@tobiasmcvey
Copy link

tobiasmcvey commented Aug 30, 2021

Tested this again at work today.

Notebook .ipynb files run just fine. There is no error.

Python .py files have issues: When I select and run a cell in a python script I get the 501 error.

However, if I just run the same command in the interactive window it runs. The connection between VS Code locally and the jupyterhub server is there, but it seems like the commands aren't being passed when I run a specific cell to the remote server. I have full access to all the data and can inspect it from the variables menu.

Not sure if that helps but it does show that

  • the connection and authentication works,
  • code can be passed locally to the server and
  • something is happening between running a cell in a file and it running on the server

At work we use each workspace to separate each employee's access to different databases so it's not really an option to just create a new one. We have separate workspaces for different projects too and we'd like to reuse them, especially in cases where we share them.

@rchiodo rchiodo removed their assignment Aug 30, 2021
@daeh
Copy link

daeh commented Sep 2, 2021

Just reporting the same issue connecting to a remote kernel

MacOS 11.5.2
vscode: v1.60.0
Jupyter: v2021.8.2031190714
conda 4.10.3

Logs attached.

Info 2021-09-02 14:59:36: Attempting to start a server because of preload conditions ...
Info 2021-09-02 14:59:38: Checking for server existence.
Info 2021-09-02 14:59:38: Checking for server usability.
Info 2021-09-02 14:59:38: Starting notebook server.
Info 2021-09-02 14:59:38: Connecting to history server
Info 2021-09-02 14:59:38: Creating jupyter server: fa19d460-6041-41a9-93f8-c6a7049f0b44
Info 2021-09-02 14:59:38: Creating server with settings : {"baseUrl":"http://localhost:9028/","appUrl":"","wsUrl":"ws://localhost:9028/","token":"000000000000000000000000000000000000000000000000","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-09-02 14:59:38: Disposing session manager
Info 2021-09-02 14:59:38: SessionManager - dispose contents manager
Info 2021-09-02 14:59:38: ShutdownSessionAndConnection - dispose session manager
Info 2021-09-02 14:59:38: Finished disposing jupyter session manager
Info 2021-09-02 14:59:38: Find preferred kernel for undefined with metadata {} & preferred interpreter {}
Info 2021-09-02 14:59:38: findPreferredKernel score for speclanguage=python, Python 3 is -1
Info 2021-09-02 14:59:38: findPreferredKernel score for Python 3 is 1
Info 2021-09-02 14:59:38: Find remote kernel spec, Class name = y, completed in 306ms, has a truthy return value, Arg 1: undefined, Arg 2: {"type":"jupyter","baseUrl":"http://localhost:9028/","token":"000000000000000000000000000000000000000000000000","hostName":"localhost","localLaunch":false,"valid":true,"displayName":"http://localhost:9028/?token=000000000000000000000000000000000000000000000000","rootDirectory":"","url":"http://localhost:9028/?token=000000000000000000000000000000000000000000000000"}, Arg 3: undefined, Arg 4: <argument cannot be serialized for logging>, Return Value: {"kind":"startUsingKernelSpec","kernelSpec":{"name":"python3","argv":["/om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python","display_name":"Python 3","metadata":{},"env":{}},"id":".python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher"}
Info 2021-09-02 14:59:38: Connecting to process for history server
Info 2021-09-02 14:59:38: Connecting server fa19d460-6041-41a9-93f8-c6a7049f0b44 kernelSpec Python 3
Connecting to Jupyter server at http://localhost:9028/
Info 2021-09-02 14:59:38: Creating server with settings : {"baseUrl":"http://localhost:9028/","appUrl":"","wsUrl":"ws://localhost:9028/","token":"000000000000000000000000000000000000000000000000","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-09-02 14:59:38: Starting a new session for kernel id = .python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher, name = python3
http://localhost:9028/: Kernel started: 3c6eac20-99a4-4dbc-a19b-2f536eb11c37
Info 2021-09-02 14:59:39: Waiting for idle on (kernel): 3c6eac20-99a4-4dbc-a19b-2f536eb11c37 -> unknown
Info 2021-09-02 14:59:40: Finished waiting for idle on (kernel): 3c6eac20-99a4-4dbc-a19b-2f536eb11c37 -> idle
Info 2021-09-02 14:59:40: Waiting for idle on (kernel): 3c6eac20-99a4-4dbc-a19b-2f536eb11c37 -> idle
Info 2021-09-02 14:59:40: Finished waiting for idle on (kernel): 3c6eac20-99a4-4dbc-a19b-2f536eb11c37 -> idle
Info 2021-09-02 14:59:40: Shutdown session - current session
Info 2021-09-02 14:59:40: shutdownSession 3c6eac20-99a4-4dbc-a19b-2f536eb11c37, .python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher - start
Info 2021-09-02 14:59:40: Session can be shutdown .python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher
Info 2021-09-02 14:59:40: shutdownSession 3c6eac20-99a4-4dbc-a19b-2f536eb11c37, .python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher - shutdown complete
Info 2021-09-02 14:59:40: Shutdown session - get restart session
Info 2021-09-02 14:59:40: Shutdown session -- complete
Info 2021-09-02 14:59:40: Connection complete for history server
Info 2021-09-02 14:59:40: Server started.
Info 2021-09-02 14:59:47: Process Execution: > ~/anaconda3/envs/lab/bin/python -c "import notebook"
> ~/anaconda3/envs/lab/bin/python -c "import notebook"
Info 2021-09-02 14:59:47: Process Execution: > ~/anaconda3/envs/lab/bin/python -c "import jupyter"
> ~/anaconda3/envs/lab/bin/python -c "import jupyter"
Info 2021-09-02 14:59:47: Process Execution: > ~/anaconda3/envs/lab/bin/python -m jupyter kernelspec --version
> ~/anaconda3/envs/lab/bin/python -m jupyter kernelspec --version
Info 2021-09-02 14:59:57: Process Execution: > ~/anaconda3/envs/ve_nipip/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/pythonFiles/normalizeSelection.py
> ~/anaconda3/envs/ve_nipip/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/pythonFiles/normalizeSelection.py
Info 2021-09-02 14:59:57: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8./Users/dae/anaconda3/envs/ve_nipip/bin/python./Users/dae/anaconda3/envs/ve_nipip/bin/python.-m#ipykernel_launcher (Interactive)
Info 2021-09-02 14:59:58: Attempting to start a server because of preload conditions ...
Info 2021-09-02 14:59:58: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-09-02 14:59:58: Intiailize notebook communications for editor vscode-interactive:Interactive-1.interactive
Info 2021-09-02 14:59:58: Resolving notebook UI Comms (resolve) for vscode-interactive:Interactive-1.interactive
Info 2021-09-02 14:59:58: initialize CommonMessageCoordinator
Info 2021-09-02 14:59:58: Creating server with settings : {"baseUrl":"http://localhost:9028/","appUrl":"","wsUrl":"ws://localhost:9028/","token":"000000000000000000000000000000000000000000000000","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-09-02 14:59:58: Creating server with settings : {"baseUrl":"http://localhost:9028/","appUrl":"","wsUrl":"ws://localhost:9028/","token":"000000000000000000000000000000000000000000000000","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-09-02 14:59:58: IPyWidgetMessageDispatcher.initialize
Info 2021-09-02 14:59:58: Created and initailized CommonMessageCoordinator
Info 2021-09-02 14:59:58: Attach Coordinator for vscode-interactive:Interactive-1.interactive
Info 2021-09-02 14:59:58: Disposing session manager
Info 2021-09-02 14:59:58: SessionManager - dispose contents manager
Info 2021-09-02 14:59:58: ShutdownSessionAndConnection - dispose session manager
Info 2021-09-02 14:59:58: Finished disposing jupyter session manager
Info 2021-09-02 14:59:58: Disposing session manager
Info 2021-09-02 14:59:58: SessionManager - dispose contents manager
Info 2021-09-02 14:59:58: ShutdownSessionAndConnection - dispose session manager
Info 2021-09-02 14:59:58: Finished disposing jupyter session manager
Info 2021-09-02 14:59:59: Creating daemon pool for /Users/dae/anaconda3/envs/lab/bin/python with env variables count 55
Info 2021-09-02 14:59:59: Process Execution: > ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-09-02 14:59:59: Process Execution: > ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-09-02 14:59:59: Process Execution: > ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/anaconda3/envs/lab/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-09-02 14:59:59: Starting Notebook in kernel.ts id = .jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8./Users/dae/anaconda3/envs/ve_nipip/bin/python./Users/dae/anaconda3/envs/ve_nipip/bin/python.-m#ipykernel_launcher
Info 2021-09-02 14:59:59: Compute Launch Info uri = /Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py, kernelConnection id = .jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8./Users/dae/anaconda3/envs/ve_nipip/bin/python./Users/dae/anaconda3/envs/ve_nipip/bin/python.-m#ipykernel_launcher
Info 2021-09-02 14:59:59: Creating server with settings : {"baseUrl":"http://localhost:9028/","appUrl":"","wsUrl":"ws://localhost:9028/","token":"000000000000000000000000000000000000000000000000","init":{"cache":"no-store","credentials":"same-origin"}}
Info 2021-09-02 14:59:59: Disposing session manager
Info 2021-09-02 14:59:59: SessionManager - dispose contents manager
Info 2021-09-02 14:59:59: ShutdownSessionAndConnection - dispose session manager
Info 2021-09-02 14:59:59: Finished disposing jupyter session manager
Info 2021-09-02 14:59:59: Find preferred kernel for file:///Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py with metadata {"language_info":{"name":"python","version":"3.8.10"},"kernelspec":{"name":"python3","display_name":"Python 3.8.10 64-bit ('ve_nipip': conda)"},"interpreter":{"hash":"80cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8"}} & preferred interpreter {}
Info 2021-09-02 14:59:59: Preferred kernel for file:///Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py is undefined
Info 2021-09-02 14:59:59: findPreferredKernel score for speclanguage=python, Python 3 is -1
Info 2021-09-02 14:59:59: findPreferredKernel score for Python 3 is 1
Info 2021-09-02 14:59:59: Find remote kernel spec, Class name = y, completed in 208ms, has a truthy return value, Arg 1: <Uri:/Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py>, Arg 2: {"type":"jupyter","baseUrl":"http://localhost:9028/","token":"000000000000000000000000000000000000000000000000","hostName":"localhost","localLaunch":false,"valid":true,"displayName":"http://localhost:9028/?token=000000000000000000000000000000000000000000000000","rootDirectory":"","url":"http://localhost:9028/?token=000000000000000000000000000000000000000000000000"}, Arg 3: {"language_info":{"name":"python","version":"3.8.10"},"kernelspec":{"name":"python3","display_name":"Python 3.8.10 64-bit ('ve_nipip': conda)"},"interpreter":{"hash":"80cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8"}}, Arg 4: {"_isCancelled":false,"_emitter":null}, Return Value: {"kind":"startUsingKernelSpec","kernelSpec":{"name":"python3","argv":["/om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"/om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python","display_name":"Python 3","metadata":{},"env":{}},"id":".python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher"}
Info 2021-09-02 14:59:59: Compute Launch Info uri = /Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py, changed false, .python3./om/user/daeda/software/anaconda3/envs/ve_nipip/bin/python..-m#ipykernel_launcher
Info 2021-09-02 14:59:59: Computed Launch Info uri = /Users/dae/coding/-GitRepos/adhder/analysis/adhder_l3_results.py, changed true, .jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8./Users/dae/anaconda3/envs/ve_nipip/bin/python./Users/dae/anaconda3/envs/ve_nipip/bin/python.-m#ipykernel_launcher
Info 2021-09-02 14:59:59: Starting a new session for kernel id = .jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8./Users/dae/anaconda3/envs/ve_nipip/bin/python./Users/dae/anaconda3/envs/ve_nipip/bin/python.-m#ipykernel_launcher, name = python3810jvsc74a57bd080cf373219621b8d4ec2e20b49da0fa7896cfb45a229b133432bbe0df66a84d8
Error 2021-09-02 14:59:59: Failed to change kernel, re-throwing [_ [Error]: 
	at new o (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:16:41638)
	at new _ (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:32:13834)
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:52:996319
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
    response: R [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}
Info 2021-09-02 14:59:59: Shutdown session -- complete
Error 2021-09-02 14:59:59: failed to create INotebook in kernel, UI Disabled = false [_ [Error]: 
	at new o (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:16:41638)
	at new _ (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:32:13834)
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:52:996319
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
    response: R [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}
Error 2021-09-02 14:59:59: DataScience Error [_ [Error]: 
	at new o (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:16:41638)
	at new _ (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:32:13834)
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:52:996319
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
    response: R [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}
Error 2021-09-02 14:59:59: failed to start INotebook in kernel, UI Disabled = false [_ [Error]: 
	at new o (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:16:41638)
	at new _ (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:32:13834)
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:52:996319
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
    response: R [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}
Error 2021-09-02 14:59:59: DataScience Error [_ [Error]: 
	at new o (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:16:41638)
	at new _ (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:32:13834)
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/extension.js:52:996319
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

Error: Invalid response: 501 Not Implemented
	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
  category: 'unknown',
  originalException: [t [Error]: Invalid response: 501 Not Implemented
  	at /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:585643
  	at processTicksAndRejections (internal/process/task_queues.js:93:5)
  	at async t.SessionManager.startNew (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2021.8.2031190714/out/client/node_modules/@jupyterlab/services.js:3:577167)] {
    response: R [Response] {
      size: 0,
      timeout: 0,
      [Symbol(Body internals)]: [Object],
      [Symbol(Response internals)]: [Object]
    }
  }
}
Info 2021-09-02 14:59:59: IPyWidgetMessageDispatcher.initialize
Info 2021-09-02 15:00:00: Process Execution: > ~/anaconda3/envs/ve_nipip/bin/python -m pip list
> ~/anaconda3/envs/ve_nipip/bin/python -m pip list

@kmehta-nuro
Copy link

On Linux, downgrading from the most recent version (v2021.8.1236758218, released 16 days ago) to the previous version (v2021.8.1195043623, released 29 days ago) fixed the issue for me. Given when this issue was created, I think it's clear that the problem starting happening with the most recent release.

@DonJayamanne
Copy link
Contributor

I can replicate this issue.
Here's what i'm doing:

  • Spinning up Jupyter and copy the URL
  • Setup that URL & open interactive window, and i get 501 error
  • Exact same process in VS Code 1.59 with webview interactive works
    Hence marking this as a regression.

@joyceerhl joyceerhl assigned DonJayamanne and unassigned joyceerhl Sep 7, 2021
@joyceerhl joyceerhl added this to the August 2021 Recovery milestone Sep 7, 2021
@DonJayamanne DonJayamanne added the candidate Issue identified as probable candidate for fixing in the next release label Sep 7, 2021
@DonJayamanne DonJayamanne changed the title invalid response: 501 not implemented in interactive window Support for Remote in IW window Sep 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
candidate Issue identified as probable candidate for fixing in the next release info-needed Issue requires more information from poster interactive-window Impacts interactive window
Projects
None yet
Development

No branches or pull requests