Vscode-jupyter: Jupyter code cell folding feature request

Created on 10 Mar 2020  路  5Comments  路  Source: microsoft/vscode-jupyter

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

Most helpful comment

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.

All 5 comments

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.

I am also interested in this feature. I and think this is related to this microsoft/vscode-jupyter#1527 issue.

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.

@Huud If you have content in cells that is not likely to be changed, you should put it in a library.

Dupe of microsoft/vscode-jupyter#1527

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dimitry-ishenko picture dimitry-ishenko  路  4Comments

hyderkh picture hyderkh  路  4Comments

AlbertDeFusco picture AlbertDeFusco  路  4Comments

BCArg picture BCArg  路  3Comments

janosh picture janosh  路  4Comments