Skip to content

Enumerate interactive cells and indicate corresponding output cell #3305

Closed

Description

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.

Activity

  1. janosh commented on Jun 27, 2019

    @janosh
    ContributorAuthor

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

  2. rchiodo commented on Jun 27, 2019

    @rchiodo
    Contributor

    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.

  3. janosh commented on Jun 27, 2019

    @janosh
    ContributorAuthor

    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!

  4. rchiodo commented on Jun 27, 2019

    @rchiodo
    Contributor

    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.

  5. ronglums commented on Jun 28, 2019

    @ronglums
    Contributor

    Would be nice to have the line numbers match too.

  6. rchiodo commented on Jul 11, 2019

    @rchiodo
    Contributor

    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.

  7. locked as resolved and limited conversation to collaborators on Aug 13, 2019
  8. unlocked this conversation on Nov 14, 2020
  9. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions