You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar):
-- Python: v2020.11.358366026
-- Jupyter: v2020.11.358541065
OS and version: macOS Catalina 10.15.6
Python version (& distribution if applicable, e.g. Anaconda): 3.8.6
IPython version: 7.10.0
Jupyter version: 1.0.0
Value of the python.languageServer setting: Jedi
Expected behaviour
The CodeLens Run Cell | Run Above | Debug Cell
above each cell marked by #%%
should be showing but is not. It was working perfectly until a few days ago. When I opened by laptop this morning, the codelens were not showing anymore above code cells. The "Jupyter: Enable Cell Code Lens" setting is enabled in my VSCode settings. I believe that, for some reason, VSCode does not detect that there are any code cells in the .py file.
I figured it out. It was due to the jupyter.codeLenses setting.
For anyone who has similar issues, open your settings.json file, and replace "jupyter.codeLenses": "python.datascience.runcell, python.datascience.runallcellsabove",
with "jupyter.codeLenses": "jupyter.runcell, jupyter.runallcellsabove",
Apparently, the first one used to work and was replaced with the second one, but the settings were not automatically modified to take this change into account.
Environment data
-- Python: v2020.11.358366026
-- Jupyter: v2020.11.358541065
python.languageServer
setting: JediExpected behaviour
The CodeLens
Run Cell | Run Above | Debug Cell
above each cell marked by
#%%
should be showing but is not. It was working perfectly until a few days ago. When I opened by laptop this morning, the codelens were not showing anymore above code cells. The "Jupyter: Enable Cell Code Lens" setting is enabled in my VSCode settings. I believe that, for some reason, VSCode does not detect that there are any code cells in the .py file.
Steps to reproduce:
Python logs
Jupyter logs
The text was updated successfully, but these errors were encountered: