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.

Unable to open Jupyter Notebooks: Using the Jupyter notebook editor requires the stable version of VS code and the CustomEditor experiment to be enabled..

See original GitHub issue

Environment data

  • VS Code version: 1.51.1
  • Extension version (available under the Extensions sidebar): XXX
  • Jupyter Extension version (available under the Extensions sidebar): v2020.11.372831992
  • OS (Windows | Mac | Linux distro) and version: Win10
  • Python and/or Anaconda version: Python 3.8.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Jupyter server running: Local and Remote

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:

  1. Try to open any jupyter notebook within VSC over the side bar -> Leads to error
  2. Opening via terminal (code file.ipynb) -> Leads to error

Logs

User belongs to experiment group 'jupyterTest'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

19reactions
rchiodocommented, Nov 21, 2020

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:

  1. Deleting this section from your user settings.json or
  2. Add this additional setting to your settings.json:
    "jupyter.experiments.optInto": [
        "CustomEditor"
    ],
5reactions
PeterMakuscommented, Nov 21, 2020

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:

1. Deleting this section from your user settings.json
   or

2. Add this additional setting to your settings.json:
    "jupyter.experiments.optInto": [
        "CustomEditor"
    ],

I experienced exactly the same issue and was able to circumvent the problem by following your instructions. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot open jupyter notebook in VSCode - Stack Overflow
I understand that the Jupyter extension is not maintained. I just use the python extension now. I received this info from the vscode...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
Create, open, and save Jupyter Notebooks · Work with Jupyter code cells · View, inspect, and filter variables using the Variable Explorer and...
Read more >
How To Fix Visual Studio Code Jupyter Notebook Error?
ipynb': Using the Jupyter notebook editor requires the stable version of VS code and the CustomEditor experiment to be enabled. This behaviour.
Read more >
Python in Visual Studio Code - September 2022 Release
IntelliSense support for Jupyter Notebooks with Python kernels is ... writing Python code in notebook files, but you will also be able to ......
Read more >
Using the JupyterLab Environment | ArcGIS API for Python
If this rebuild fails in the UI, run jupyter lab build from your OS's command line to rebuild all extensions manually. You also...
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