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

Notebooks: Self-hosting experience #109549

Closed
10 of 13 tasks
kieferrm opened this issue Oct 28, 2020 · 7 comments
Closed
10 of 13 tasks

Notebooks: Self-hosting experience #109549

kieferrm opened this issue Oct 28, 2020 · 7 comments
Assignees
Labels
notebook under-discussion Issue is under discussion for relevance, priority, approach

Comments

@kieferrm
Copy link
Member

kieferrm commented Oct 28, 2020

Over the last 2 weeks or so, I have been using GitHub issues notebooks intensively. Overall it's working very well. This is the collection of paper cut issues I ran into. The first three in the list are indeed my top three.

  • I miss the run button when I try to click on it around 50% of the time. When you move your mouse very slowly in and out of the run button you can see where it changes and how that is misleading.
    image
  • When switching back and forth between different editors or windows I easily lose track of where the keyboard focus is inside a notebook. This is less of a problem when a cell editor has the focus but very much so when the cell has the focus. Try: Give a cell the focus, Cmd+Shift+F, Cmd+1. You see that the only indication is the change in upper and lower border.
    lsqWDiuxKq
  • I often click into the cell status bar when trying to give focus to an editor or I try to delete the "empty" line in a cell by using arrow-down to get there.
    n3xR8wR3OM
  • After I create a new cell with Cmd+Enter I try to change the cell language with "change language mode" in the command palette.
  • Undo of markdown edits replay in the rendered markdown. I'd expect that the cell goes into edit mode and then performs the undo.
    2MfGCeQchh
  • The first diff in a notebook is not revealed when opening the diff editor. Since we don't have the minimap or show diffs in the scrollbar it looks like there are no diff. We should follow the model of text editors here.
    image
  • I've seen rare situations in which I had screen cheese, see Screen cheese in notebooks #108764.
  • When I open a notebook diff editor with double-click and then open the notebook file that is being diffed using Cmd+P, the latter opens as json Open notebook when diff editor is open doesn't the file in notebook editor #110894.
  • 🏃 Open a GH issues notebook with problems. Open the Problems view and click on a problem. A second editor opens.
  • When trying to delete output, I was always first looking closer to the actual output rather than the cell toolbar Output actions closer to outputs container #110959
  • 💪 I repeatedly tried to use Find to look for information in the outputs... Notebook: find doesn't search in output #94239
  • I repeatedly tried to use ArrowDown to go from a cell editor to the output below.
  • 🏃 The GH issues notebook loses its keyboard focus when: 1) run a cell 2) Open an issue from output by clicking the link 3) Cmd-Tab to come back to the VS Code window -> no keyboard focus. You have to explicitly mouse click into the notebook to bring it back.
@miguelsolorio
Copy link
Contributor

Updated the default styles to make the "focus" state much more clearer and also added placeholder text in the status bar for active cells to better use the space. This should be updated in tomorrow's Insiders, happy to hear any feedback:

gif

@claudiaregio
Copy link

claudiaregio commented Nov 17, 2020

I think this looks good too! At one point during the gif there was a cell output going past the bottom of the screen. My only feedback would be that for scenarios like this or very long cells, the blue line only on top of the cell could be too subtle for users to understand what that indicator is supposed to be. I think they could figure it out after seeing it in action with smaller cells, but could just increase learning time.

image

For the same scenarios in the code editor, the blue border at least covers 3 sides of the cell and is a little more clear at indicating a selection/focus of some sort. The previous selection version also had a background the also spanned the 3 sides which helped.

image

Thinking a bit forward, could this support navigating within multiselect somehow?

@rebornix
Copy link
Member

rebornix commented Nov 17, 2020

Updates on some UX polishes:

  • Clicking on status bar will adjust its clientY position and set the cursor correspondingly in the editor. if users click on a status bar item, then it will only run the command other than hijacking the clicking.

mouse-click-adjustment

  • Change Language Mode will invoke "Change Cell Language" command under the hood when the command is executed inside a cell editor.

  • Undo/Redo should change the markdown cell into editing mode and also focus inside the editor
    focus-markdown-cell-editor-undoredo

@rebornix
Copy link
Member

Open a GH issues notebook with problems. Open the Problems view and click on a problem. A second editor opens.

The last time when @kieferrm ran into this issue, we found that

  • firstly it happens in remote ssh environment
  • the Uri of the problems differ from the resource uri of the document in the editor, the editor says .vscode/notebooks/api.github-issues but the problem says /Users/penlv/code/vscode/.vscode/notebooks/api.github-issues.

They should be pointing to the same resource but the resource Uris are not identical. I tried to reproduce this again with ssh into both macOS and Ubuntu but can't reproduce anymore. @kieferrm can you verify if you can still reproduce this in your setup?

The GH issues notebook loses its keyboard focus when: 1) run a cell 2) Open an issue from output by clicking the link 3) Cmd-Tab to come back to the VS Code window -> no keyboard focus. You have to explicitly mouse click into the notebook to bring it back.

I'm not able to reproduce this issue now, @kieferrm can you confirm?

webview-focus

@kieferrm
Copy link
Member Author

@rebornix regarding #109549 (comment): I cannot reproduce either issue in the latest insider.

@rebornix
Copy link
Member

Thanks!

There are 3 items left which are tracked in separate issues and we will have discussions there. Closing this issue as others are all done.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
notebook under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

6 participants
@roblourens @rebornix @kieferrm @claudiaregio @miguelsolorio and others