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.

Jupyter Kernel `ms-toolsai.jupyter` cause `.py` code folding to disappear

See original GitHub issue

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Enabling the ms-toolsai.jupyter extensions in VSCode 1.72.2 cause code folding to disappear in ordinary .py files. See https://github.com/microsoft/vscode/issues/163978

I use ms-toolsai.jupyter version v2022.9.1202862440.

VS Code Version

Extension Author (truncated) Version
better-comments aar 3.0.2
auto-dark-mode-windows dan 1.0.11
vscode-markdownlint Dav 0.48.1
git-graph mhu 1.30.0
python ms- 2022.16.1
jupyter ms- 2022.9.1202862440
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
autodocstring njp 0.6.1
indent-rainbow ode 8.3.1
intellicode-api-usage-examples Vis 0.2.5
vscodeintellicode Vis 1.2.28

Jupyter Extension Version

v2022.9.1202862440

Jupyter logs

No response

Coding Language and Runtime Version

Python 3.7

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

Running Jupyter locally or remotely?

Local

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
yasirronicommented, Oct 28, 2022

Using VSCode manual version install as explained in https://stackoverflow.com/questions/42626065/vs-code-how-to-rollback-extension-install-specific-extension-version, the last working version without this bug is v2022.8.1002431955.

Since problem is not fixed yet, you can downgrade (and automatically stop auto update) to v2022.8.1002431955 guys.

1reaction
ravimulpuricommented, Oct 28, 2022

I have the same issue as well. Unless I disable jupyter extension, I don’t get folding for python files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter notebook cell code folding and output view ...
I hope vscode jupyter notebook may allow the code cell to be folded as in .py code editor in VScode, and fold the...
Read more >
How to enable code folding in Jupyter Lab - python
Settings -> Advanced Settings Editor -> Cell Toolbar -> Notebook -> Rulers -> Checked box for "CodeFolding ". I'm using Labs 3.5.0. Share....
Read more >
Codefolding — jupyter_contrib_nbextensions 0.5.0 ...
The folding status is saved in the cell metadata of the notebook, so reloading of a notebook will ... Python-style code folding, detetects...
Read more >
How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks!
Read more >
Jupyter - Visual Studio Marketplace
Extension for Visual Studio Code - Jupyter notebook support, ... This is NOT a Jupyter kernel--you must have Python environment in which you've...
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