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 code cell folding feature request

See original GitHub issue

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description

When you have a python file with jupyter code cells (using # %%), it would be nice if I could fold individual cells, like I can fold functions.

2020-03-10-125037_612x111_scrot

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:24
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
Huudcommented, May 19, 2020

This is the main reason stopping me from using VSCode more instead of the standard JupyterNB with Nbextensions, I work with a lot of cells that many become set in stone and not needed to be changed, not being able to fold/hide them increases the clutter immensely, it becomes harder to work.

3reactions
DonJayamannecommented, Mar 10, 2020

Note: This is a simple enough change. We have the cell ranges. All we need to do is create a class that provides the collapsible ranges to VSC. Return the cell ranges and things should work as expected.

@jordan-schneider thanks for the suggestion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter code cell folding feature request · Issue #92389 - GitHub
When you have a python file with jupyter code cells (using # %%), it would be nice if I could fold individual cells,...
Read more >
collapse cell in jupyter notebook - python - Stack Overflow
The jupyter contrib nbextensions Python package contains a code-folding extension that can be enabled within the notebook. Follow the link (Github) for ...
Read more >
Collapse or folding code cell in Jupyter notebook
Yes, you can fold/unfold regions of your code in Jupyter cells the same way as it works in .py files. If you're talking...
Read more >
Codefolding — jupyter_contrib_nbextensions 0.5.0 ...
Allows collapsing of Python code cells to a single comment line. This is useful for long codecells. The algorithm simply looks for a...
Read more >
July 2022 (version 1.70) - Visual Studio Code
Fold selection - Create your own folded regions in the editor. ... It is now possible in the Jupyter extension to copy plots...
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