Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerate interactive cells and indicate corresponding output cell #3305

Closed
janosh opened this issue Jun 27, 2019 · 6 comments
Closed

Enumerate interactive cells and indicate corresponding output cell #3305

janosh opened this issue Jun 27, 2019 · 6 comments
Assignees

Comments

@janosh
Copy link
Contributor

janosh commented Jun 27, 2019

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.

vscode-python-interactive-cell-enumeration

The format could be #1 [1] or just #1 if no output was generated for that cell yet.

@janosh
Copy link
Contributor Author

janosh commented Jun 27, 2019

Just saw this related PR: microsoft/vscode-python#6338.

@rchiodo
Copy link
Contributor

rchiodo commented 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
Copy link
Contributor Author

janosh commented Jun 27, 2019

Sorry that PR (#6338) has to do with debugging, not mapping cells in the code.

Oh, sorry for the confusion. I thought the same or similar association might have been reused for my suggestion.

We might be able to add a decorator into the editor itself though. Or perhaps change the Run Cell code lens.

Yep, that would certainly work as well!

@rchiodo
Copy link
Contributor

rchiodo commented Jun 27, 2019

Oh, sorry for the confusion. I thought the same or similar association might have been reused for my suggestion.

Actually the same service could probably be used to implement this as well. Good idea.

@ronglums
Copy link
Contributor

Would be nice to have the line numbers match too.

@rchiodo
Copy link
Contributor

rchiodo commented 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.

@rchiodo rchiodo self-assigned this Jul 16, 2019
@rchiodo rchiodo closed this as completed Aug 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants