You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enumerate interactive cells and indicate corresponding output cell #3305
It would be nice if the extra space available in the line number column thanks to the "Run Cell | Run Above | Run Below" commands above Python interactive cells was used to enumerate the cells and indicate the number of the (latest) corresponding output cell in the interactive window if one exists.
The format could be #1 [1] or just #1 if no output was generated for that cell yet.
Sorry that PR (#6338) has to do with debugging, not mapping cells in the code.
What you're asking for is not renderable at the moment. VS Code only allows icons in the gutter icon (like a breakpoint). We might be able to add a decorator into the editor itself though. Or perhaps change the Run Cell code lens.
Activity
janosh commentedon Jun 27, 2019
Just saw this related PR: microsoft/vscode-python#6338.
rchiodo commentedon Jun 27, 2019
Sorry that PR (#6338) has to do with debugging, not mapping cells in the code.
What you're asking for is not renderable at the moment. VS Code only allows icons in the gutter icon (like a breakpoint). We might be able to add a decorator into the editor itself though. Or perhaps change the Run Cell code lens.
janosh commentedon Jun 27, 2019
Oh, sorry for the confusion. I thought the same or similar association might have been reused for my suggestion.
Yep, that would certainly work as well!
rchiodo commentedon Jun 27, 2019
Actually the same service could probably be used to implement this as well. Good idea.
ronglums commentedon Jun 28, 2019
Would be nice to have the line numbers match too.
rchiodo commentedon Jul 11, 2019
Line number match requires matching up a cell with the file it was in and figuring out that the exception trace is pointing at that cell/file.