Skip to content

Shift enter to empty cell doesn't place the new cell in a visible location on screen #134607

Closed

Description

Not 100% sure what's happening here, but it might just be the output arriving and pushing down the focused cell. But it's not a good shift enter experience as my cell focus is on the next cell, but I can't see it on screen at all.

ShiftEnterFocus

Activity

  1. rchiodo commented on Oct 7, 2021

    @rchiodo
    Contributor

    This is a VS code core issue.

  2. added
    bug
    on Oct 11, 2021
  3. roblourens commented on Oct 11, 2021

    @roblourens
    Member

    This can happen in Jupyter lab too. What happens here is:

    1. Insert cell B below and reveal it
    2. Clear the output on cell A
    3. Insert the output on cell A, since it is visible and changing its height, we maintain its scroll position
    4. Now cell B is pushed out of the viewport

    I think in this scenario it is by design. My understanding of what happens in shift+enter is that the focus is really still on cell A. But I don't understand why people want it to work that way.

  4. added
    under-discussion
    and removed
    bug
    on Oct 26, 2021
  5. removed their assignment
    on Dec 30, 2022
  6. rebornix commented on Dec 30, 2022

    @rebornix
    Contributor

    There is another request microsoft/vscode-jupyter#5186 which asks for exactly the opposite.

  7. roblourens commented on Dec 30, 2022

    @roblourens
    Member

    Exactly, but Jupyter lab's behavior doesn't make sense to me

  8. rebornix commented on Jan 13, 2023

    @rebornix
    Contributor

    Playing around this again, what VS Code does now is, shift+enter reveals cell B in center and focuses it, since it's focused cell, the height change of cell A won't change the visual position of cell B. roblourens correct me if it's not the behavior you would expect.

  9. locked and limited conversation to collaborators on Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

notebook-layoutunder-discussion

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions