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
There have been a few behavior changes when executing a cell with shift+enter around how scrolling behaves in relation to the next cell which should then be focused.
Pre-requisites - If you don't have python set up to run notebooks
ensure python is installed on your machine
open a workspace where you will be running tests for this TPI
Create: new jupyter notebook and run print(1) in a cell.
a. If the cell runs successfully, you're already set up, otherwise...
The kernel picker should open, select "Python Environments..." -> "Create Python Environment..." -> select venv or conda, and whichever version you'd like.
A virtual environment should get created in your workspace with all necessary packages installed, and the cell should run successfully.
Testing
ensure notebook.scrolling.experimental.anchorToFocusedCell is not set
Create a notebook with several cells that generate output in a variety of ways (examples below), and has enough cells to take up multiple screen heights.
Execute the cells in the notebook with shift+enter which will select the next cell as they are executed.
Try exposing different behaviors by
a. shrinking the viewport
b. scrolling to put the executing cell in different positions on the screen
c. executing a cell that is followed by a very large cell
d. re-execute cells, with and without clearing the output first
Try a different setting for notebook.scrolling.revealNextCellOnExecute
Behaviors to expect:
Don't push a focused cell out of view (unless notebook.scrolling.revealNextCellOnExecuteis set to none)
Scrolling up will end this behavior
A cell with focus in the editor should always be anchored if cells above are resizing
If you execute a cell that already had output, it should not shrink the output size during execution.
Example Cells
Remove and add output (when run multiple times)
import time
time.sleep(3)
for i in range(29):
print(i)
Stream in output
import time
for i in range(20):
time.sleep(.5)
print(i)
large outputs that are immediately replaced
for i in range(20):
print(i)
Large cells (e.g. a bunch of extra empty newlines)
The text was updated successfully, but these errors were encountered:
refs: #194516
Complexity: 5
Create Issue
Description
There have been a few behavior changes when executing a cell with shift+enter around how scrolling behaves in relation to the next cell which should then be focused.
Pre-requisites - If you don't have python set up to run notebooks
Create: new jupyter notebook
and runprint(1)
in a cell.a. If the cell runs successfully, you're already set up, otherwise...
A virtual environment should get created in your workspace with all necessary packages installed, and the cell should run successfully.
Testing
notebook.scrolling.experimental.anchorToFocusedCell
is not seta. shrinking the viewport
b. scrolling to put the executing cell in different positions on the screen
c. executing a cell that is followed by a very large cell
d. re-execute cells, with and without clearing the output first
notebook.scrolling.revealNextCellOnExecute
Behaviors to expect:
notebook.scrolling.revealNextCellOnExecuteis
set tonone
)Example Cells
Remove and add output (when run multiple times)
Stream in output
large outputs that are immediately replaced
Large cells (e.g. a bunch of extra empty newlines)
The text was updated successfully, but these errors were encountered: