Jupyter code cell folding feature request
See original GitHub issueFeature: 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.
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
Issue Analytics
- State:
- Created 4 years ago
- Reactions:24
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.