posit-dev / positron

Positron, a next-generation data science IDE
Other
2.29k stars 68 forks source link

Outline for hierarchical `#%` code cells #3886

Open seeM opened 2 months ago

seeM commented 2 months ago

[...] in .py files I was hoping to get in the Outline pane a TOC like Spyder IDE provides, which is highly helpful. It implements a hierarchical section system as below:

#%% Section
#%%% Subsection
#%%%% Subsubsection

PS: There is a related VScode discussion here https://github.com/microsoft/vscode-python/issues/17218

Originally posted by @GitHunter0 in https://github.com/posit-dev/positron/issues/3824#issuecomment-2209236702

kylebutts commented 2 months ago

This feature seems at odds with the code-cells extension.

For .ipynb, Positron and VSCode already recognizes h# headers in markdown chunks and populates the outline view with them. It does not work with .py files.