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

Huge blank space after the cell output #16006

Open
Ark-kun opened this issue Sep 6, 2024 · 2 comments
Open

Huge blank space after the cell output #16006

Ark-kun opened this issue Sep 6, 2024 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-output

Comments

@Ark-kun
Copy link

Ark-kun commented Sep 6, 2024

Type: Bug

When some Jupyter cell is re-executed, the size of the output cell and the surrounding area decreases to represent empty output. However sometimes, while the output cell size decreases, the size of the gap between the cells remains big (sometimes bigger than vertical screen). So there is a huge blank space after the cell output and before the next cell.

I'm currently not sure how to reprodce this reliably, but it should be like this:
0) Create several notebook cells and focus on the 1st one.

  1. Run a code cell that creates multiple outputs (multiple truncated outputs. It's possible to have up to 500 of them.)/
  2. Replace the cell code with print("Hello world") and re-run the cell.
  3. The output is now small, but the gap between the end of output and the beginning of the next cell is huge.

Extension version: 2024.7.0
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3394)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 127.93GB (47.38GB free)
Process Argv --crash-reporter-id 4c472b0d-1b85-4f57-b29c-3c522acbd317
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-t:31111718
fje88620:31121564

@vs-code-engineering vs-code-engineering bot added the triage-needed Issue needs to be triaged label Sep 6, 2024
@amunger
Copy link
Contributor

amunger commented Sep 6, 2024

the output should shrink down when the execution is complete, is that not happening for you?

Does it repro when you set up your cell like this:

from IPython.display import display, Image
for i in range(1, 10):
    display(Image(filename='image.png'))
    for j in range(31):
        print('hello')

@amunger amunger added the info-needed Issue requires more information from poster label Sep 6, 2024
@Ark-kun
Copy link
Author

Ark-kun commented Sep 14, 2024

the output should shrink down when the execution is complete, is that not happening for you?

Normally it shrinks down immediately after the execution starts, but sometimes it lags and few times it never shrinked, so I consider that a bug. I think there might be some race condition issue in the resizing code (e.g. the gap rectangle resizes itself to the height of the output rectangle, but in rare cases this happens before the output rectangle shrinked).

The issue occurred with text-only outputs (prints and logging.warns), no special IPython outputs.

@amunger amunger added bug Issue identified by VS Code Team member as probable bug notebook-output and removed info-needed Issue requires more information from poster triage-needed Issue needs to be triaged labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug notebook-output
Projects
None yet
Development

No branches or pull requests

2 participants