vscode: python create new blank jupyter notebook error

  • VSCode Version: 1.49
  • OS Version: win10

Steps to Reproduce:

F1>Python: Create New Blenk Jupyter Notebook

無法開啟 ‘Untitled-3.ipynb’: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (“/”) character。

vscode python jupyter error

Does this issue occur when all extensions are disabled?: Requires dependent python

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 29

Most upvoted comments

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Hi all,

it seems that, in my case, the problem has been resolved on its own. image

Try to open a folder with VS and run a python script (whatever): while running, VS has asked me to restart itself two times because “some extensions have been modified on the disk”.

After the two applications restart, I could run a jupyter notebook inside of it: its a real interesting bug

image

I’m having the same problem. Additionally, the Jupyter Notebook editor is not loading - don’t know if these two issues are related.

I managed to resolve this error by following these steps:

  1. Uninstall vscode completely - https://www.logicbig.com/how-to/visual-studio-code/remove-vs-code-completely.html (Restart the machine)
  2. Install vscode Insiders user- https://code.visualstudio.com/insiders/
  3. Install extensions - Python (Microsoft), Remote-WSL
  4. select base environment image
  5. Open a folder and create file and name it “whatever.ipynb” that should automatically ask to you install more dependencies follow through the errors and select the local kernel

This took me a whole day too, but its working now. Hopefully this helps. image

Hi mate, I may have found a work around. Installed VS code- insiders and it works now. https://github.com/microsoft/vscode-python/issues/11865 image