-
Notifications
You must be signed in to change notification settings - Fork 294
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
Unable to open Jupyter Notebooks: Using the Jupyter notebook editor requires the stable version of VS code and the CustomEditor experiment to be enabled.. #3988
Comments
Same issue on ubuntu 20.04 |
@claudiaregio this might be a side effect of the custom editor experiment being turned on. |
This shouldn't be happening but might be caused by this setting being in your user settings.json: "workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
], Can you check if that editor association is there? This would likely cause the bug above. We think you can workaround this bug by:
"jupyter.experiments.optInto": [
"CustomEditor"
], |
I experienced exactly the same issue and was able to circumvent the problem by following your instructions. Thanks! |
@PeterMakus, good to hear! Did you happen to have "Settings Sync" turned on or know that you've ever turned it on? It's ok if you don't remember. Just looking for clues as to how these settings are getting messed up. |
No, that setting was turned off. |
Hi all, I had this issue despite not having the editor association in settings.json Adding the second section from @rchiodo's post resolved this issue, however. |
@PeterMakus @xcojonny @warmbadetag |
@IanMatthewHuff I think the problem could be that users are falling into the custom editor experiment (now that its enabled) & they are also using insiders (this could be a serious issue for those using VS Code insiders if this is true & might require a point fix) or at some point tried native notebooks. |
@DonJayamanne I'm on the latest stable for ubuntu. |
Experiment is for stable only |
Tried this my self today (no issues), will be a tough one to validate. |
@DonJayamanne Agreed. I tried turning custom editor on and off in stable and using native notebooks in insiders. I think at the bug bash I'll try manually adding in the custom editor association to my settings and seeing if it gets removed when I'm not in the experiment. |
The first option of deleting the entry worked while the second option of adding the new entry didn't. Version: 1.51.1 |
None of the options worked for me |
It worked for me thanks. |
027531e microsoft/vscode-jupyter#3988 https://github.com/microsoft/vscode-jupyter/releases/tag/2020.11.2 https://github.com/microsoft/vscode-python recently refactored the Jupyter Notebook features into a separate extension, ms-toolsai.jupyter. It's not yet available on https://open-vsx.org/, but it can be manually downloaded from the VSCode marketplace as a VSIX if necessary, from https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter. Extension version 2020.11.2 auto-updated its editor associations.
Also having this issue with particularly large .ipynb files. I can open smaller ones and edit / run them no problem (< 20 MB), but bigger ones (> 50 MB) render as text and either take ~one minute to render as notebooks, or it gives up and I get this message. Solution #1 is n/a, I don't have those settings, solution #2 didn't work, I have stable build for Mac. |
027531e microsoft/vscode-jupyter#3988 https://github.com/microsoft/vscode-jupyter/releases/tag/2020.11.2 https://github.com/microsoft/vscode-python recently refactored the Jupyter Notebook features into a separate extension, ms-toolsai.jupyter. It's not yet available on https://open-vsx.org/, but it can be manually downloaded from the VSCode marketplace as a VSIX if necessary, from https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter. Extension version 2020.11.2 auto-updated its editor associations.
I'm getting this after upgrading to 1.54.2, I've made no other changes. Removing "workbench.editorAssociations": [ Causes the file to be opened as text rather than a notebook. |
@david-waterworth did you also upgrade your jupyter extension? If you upgrade VS code to 1.54, it requires an upgrade to the jupyter extension to work |
@rchiodo no I didn't, but none of my extensions are showing new versions. It shows that there are no new extensions. Jupyter is v2021.3.619093157 |
@rchiodo I "fixed" it by removing and reinstalling the Juyper extension (which also required removing the Python and Pylance extensions), along with any jupyter related setting in my config file. It reinstalled the same version (v2021.3.619093157) so I guess there was an incompatible setting from a previous version somewhere. |
I had this issue as well, but implementing the advice above didn't work. I managed to fix it, but only by restoring a Note that I am explicitly passing empty lists to the Relevant keys that actually worked in my current user {
\\ ... OTHER SETTINGS ... \\
"jupyter.experiments.enabled": true,
"jupyter.experiments.optInto": [],
"jupyter.experiments.optOutFrom": [],
"workbench.editorAssociations": [
{
"viewType": "jupyter-notebook",
"filenamePattern": "*.ipynb",
},
],
"notebook.kernelProviderAssociations": [
{
"viewType": "jupyter-notebook",
"kernelProvider": "ms-toolsai.jupyter",
},
],
\\ ... OTHER SETTINGS ... \\
} Here I have trimmed down the settings to what I suspect are the only necessary ones... Minimal {
\\ ... OTHER SETTINGS ... \\
"jupyter.experiments.enabled": true,
"workbench.editorAssociations": [
{
"viewType": "jupyter-notebook",
"filenamePattern": "*.ipynb",
},
],
"notebook.kernelProviderAssociations": [
{
"viewType": "jupyter-notebook",
"kernelProvider": "ms-toolsai.jupyter",
},
],
\\ ... OTHER SETTINGS ... \\
} |
Environment data
Expected behaviour
Clicking on a Jupyter-Notebook opens the notebook.
Actual behaviour
Clicking on a Jupyter-Notebook opens the Notebook for a second. Then the file is being closed and the following error is displayed:
Unable to open '[*].ipynb': Using the Jupyter notebook editor requires the stable version of VS code and the CustomEditor experiment to be enabled..
This behaviour occurred suddenly, without me changing knowingly anything in VSC. The Notebooks can still be opened on different machines. Furthermore creating a new Notebook works.
Steps to reproduce:
Logs
The text was updated successfully, but these errors were encountered: