Create new notebook fails, opening existing notebook does not work (Proposed API error).
See original GitHub issueEnvironment data
- VS Code version: 1.61.0
- Jupyter Extension version: v2021.9.100
- Python Extension version: v2021.10.1365161279
- OS and version: Manjaro 21.1.6
- Python and/or Anaconda version: 3.9.4
- Type of virtual environment used: conda
- Jupyter server running: Local
Expected behaviour
A clean install of vscode and the respective extensions should create and open jupyter notebooks properly.
Actual behaviour
- Opening an existing jupyter notebook enables to create and edit cells, but there is no possibility to execute them.
Jupyter: Create New Jupyter Notebook
shows error:command 'jupyter.createnewnotebook' not found
, nothing more happens.
In both situations, the developer tools console prints the following error:
[ms-python.python]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ms-python.python
See trace in screenshot below.
Steps to reproduce:
For my configuration, the following steps did not resolve the error:
- uninstall vscode
- clear data in
~/.config/Code - OSS/
and~/.vscode/
- install vscode
- install python and jupyter extension, select proper python interpreter
- try to create a new notebook using
Jupyter: Create New Jupyter Notebook
or open an existing notebook
Error screenshot
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Using Proposed API - Visual Studio Code
Proposed APIs are a set of unstable APIs that are implemented in VS Code but not exposed to the public as stable APIs...
Read more >Cannot open jupyter notebook in VSCode
I have installed the ms-python extension, and also the jupyter package, as described here. However, after reloading, I did not have a command ......
Read more >Common problems and solutions—ArcGIS Notebook Server
When I try to open a notebook, I get this error: Error opening notebook. Unable to connect to the Docker environment on the...
Read more >Troubleshooting errors in AWS Glue
If AWS Glue fails to create the notebook server for a development endpoint, it might be because of one of the following problems:...
Read more >Error Messages Display on a Blue Screen (Windows 10)
1. In Windows, search for and open View advanced system settings. 2. In the Startup and Recovery section, click Settings. 3. Remove the...
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
@IanMatthewHuff ah, that totally makes sense! Thank you for your investigation and time, that is something I could have found 😕
I managed to resolve the issue by adding
"ms-toolsai.jupyter"
to"extensionAllowedProposedApi": [..]
in/usr/lib/code/product.json
as suggested. Closing the issue.Hmmm interesting. I don’t have access to an Arch Linux machine right now, but I’m checking out the docs online. I was a bit confused that there were Code - OSS directories that were listed as those directories are not usually in the official VS Code releases.
Looking around I believe that I see the answer here. It looks like ArchLinux by default installs Code - OSS (which is not the official Microsoft release, but should function normally).
https://wiki.archlinux.org/title/Visual_Studio_Code
The actual official Microsoft release looks like it’s
visual-studio-code-bin
notcode
. Looking further into the link above it looks like the “Command Not Found” issue is a known issue with Code - OSS, as Code - OSS doesn’t recognize specific extensions that are allowed to use the proposed API in stable builds. This sounds exactly like the symptoms that you are seeing. I think that the advice would be to add in those extensions (probably Python and Jupyter here) as detailed as here from the above link:Or to install the official Microsoft release of vs code instead of Code - OSS.