Displays titles for Python script cells delimited by formats like #%%, # <codecell>, # In[123], etc., for quick navigation in the sidebar.
Features
Automatically scans the currently open Python script and extracts cell titles that match the delimiters.
Displays all cell titles in the "iPython Cells" view in the sidebar.
Clicking a title navigates to the corresponding line of code.
Supports various common cell comment formats found in Jupyter/IPython scripts.
Configurable: Option to show/hide "first cell" and "last cell" titles for untitled cells. (This feature was recently added/discussed)
Usage
Install and enable this extension.
Open a .py file (containing #%% or similar delimiters).
Open the "iPython Cells" panel in the sidebar to browse the list of cells.
Click a title to jump to the corresponding code location.
Configuration
Customize the matching regular expression via pycellOutline.pattern in VS Code settings.
Default: ^(#\s*%%|#\s*<codecell>|#\s*In\[\d*?\]|#\s*In\[ \])(.*)$
Toggle displaying "first cell" and "last cell" titles for untitled cells using pycellOutline.showSpecialCells in VS Code settings.
Default: true