question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running the contributed command: 'jupyter.selectjupyteruri' failed

See original GitHub issue

Issue Type: Bug Recent update completely broke Jupyter.

Selecting <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>p</kbd> then Jupyter: Specify local or remote Jupyter server for connections gives the following error:

Command 'Jupyter: Specify local or remote Jupyter server for connections' resulted in an error (Running the contributed command: 'jupyter.selectjupyteruri' failed.)

image

Trying to run python code with <kbd>Shift</kbd>+<kbd>Enter</kbd> gives the following three errors simultaneously:

  1. Unable to open 'Interactive - microsoft/vscode-python#1': Webview overlay is disposed.
  2. e.toLowerCase is not a function
  3. e.toLowerCase is not a function

image

Extension version: 2021.3.680753044 VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z) OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel® Core™ i5-6300U CPU @ 2.40GHz (4 x 2496)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (6.38GB free)
Process Argv –crash-reporter-id f652528b-5678-4b12-9ca0-3de6b1e1135f
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythontb:30283811
openwsldoc:30282072
vspre833cf:30267465
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820cf:30276953
pythondataviewer:30285071

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
joyceerhlcommented, Apr 9, 2021

Validated. I did the following:

  1. Install VS Code 1.54 and the March release (2021.3.x) of the Jupyter extension on the marketplace
  2. Run `Specify local or remote Jupyter server for connections’ to pick AML compute remote jupyter server
  3. Open a blank notebook with the remote connection
  4. Upgrade to VS Code 1.55.1 with the same 2021.3.x release of the Jupyter extension
  5. Run ‘Specify local or remote Jupyter server for connections’ and verify the error message comes up: image
  6. Install the Jupyter vsix from this morning’s bug bash
  7. Run ‘Specify local or remote Jupyter server for connections’ and verify the quickpick comes up with no error message 🎉

@clayms we’re planning to make this fix available in a point release early next week so I’m going to go ahead and close this issue. Please keep an eye out for that release, which should resolve this issue. Thanks for bringing this to our attention!

2reactions
claymscommented, Apr 6, 2021

The following seems to have fixed the issue, however, I don’t think updating VS Code should cause this much hassle.

  1. Deleted the following from my named.workspace file,
	"settings":  {
		 "jupyter.jupyterServerType": "remote"
	}
  1. Restarted VS Code,
  2. <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>p</kbd> then Jupyter: Clear Jupyter server list,
  3. Ran python code with <kbd>shift</kbd>+<kbd>enter</kbd> in the local default python interpreter,
  4. <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>p</kbd> then Jupyter: Specify local or remote Jupyter server for connections.
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use a remote Jupyter server in VSCode?
Command 'Python: Specify local or remote Jupyter server for connections' resulted in an error (Running the contributed command: 'python.
Read more >
Working with Jupyter Notebooks in Visual Studio Code
You can create a Jupyter Notebook by running the Create: New Jupyter Notebook command from the Command Palette (Ctrl+Shift+P) or by creating a...
Read more >
Python in Visual Studio Code – March 2022 Release
In this release we're introducing a Pylint extension, a simpler way to create empty Python and Jupyter Notebook files, fixes for running and ......
Read more >
Can't restart kernel in VSCode jupyter notebook - VS Code
Command 'Julia: Restart kernel' resulted in an error (Running the contributed command: 'language-julia:restartKernel' failed.).
Read more >
Getting Started | Python in Visual Studio Code
Running a line of code in a kernel. Open a python file; Select a line or a block of code; From the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found