Show cell number in Anaconda/Spyder

Viewed 131

Using Spyder 4.1.4 in Anaconda, how does one show the cell number in the editor tab? In the Console it helpfully tells you the cell number currently being executed, e.g. "runcell(1, 'C:/script.py')", but I can't see a way to match this "1" back to the editor tab.

1 Answers

(Spyder maintainer here) That's just a generic name. If you want to name your cells (either with a number or any other text), you need to add the name next to the # %% marker, like this

# %% 1
Related