hoangKnLai / vscode-ipython

VSCode Extension integrating Editor with IPython console.
MIT License
18 stars 5 forks source link

Cell Hierarchy in Execution #14

Closed hoangKnLai closed 2 years ago

hoangKnLai commented 2 years ago

Potential Feature

A cell block at a higher level should executes all cell blocks below that are tab-ed in. For example:

# %% Cell Level 1.

# When run this cell, all lower cell levels are executed and stop at cell level 2

if True: 
    # %% Cell Level 1.1

   # Run this cell includes its lower level cell 1.1.1 but stop at 1.2

    print('Inner Cell 1.1')  

           # %% Cell Level 1.1.1          
           # This cell excludes its upper levels

           if True:
                 print('Cell Level 1.1.1')

    # %% Cell Level 1.2
    print('Inner Cell 1.2')

# %% Cell Level 2.

When move to next cell, only move to its next level on the list.

hoangKnLai commented 2 years ago

Completed in v2022.9.1 with both the hierarchy and cell navigation.