vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

LiveShare Jupyter Notebook output synch problem

Open MattOrmianek opened this issue 2 years ago • 9 comments

Type: Bug

When I create session on mac using LiveShare, and work on Jupyter Notebook user that created this session see all output off cells (for example: output is 3 plots) and users connected to that session see limited output (for example: output for that user is only 1 of 3 plots). Checked versions of everything, also tried searching on web, nothing helps. Same problem when session is created on PC and mac user try to see output of cell. Also same problem when user is connected to web. Tried with several devices.

Extension version: 1.0.14 VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z) OS version: Darwin arm64 22.2.0 Modes: Sandboxed: No

System Info
Item Value
CPUs Apple M1 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 5, 4, 3
Memory (System) 16.00GB (0.05GB free)
Process Argv --crash-reporter-id 219a6e59-7038-479d-9d8e-3fcfe7c543e2
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30577860
nodejswelcome1cf:30587006
2e4cg342:30602488
89544117:30613380
pythonsymbol12cf:30657549
2i9eh265:30646982

MattOrmianek avatar Feb 05 '23 02:02 MattOrmianek

Thank you for filing this issue and sorry you are running into this.

  • Please could you share a sample notebook that can be used to replicate this issue (with the outputs)
  • Does this apply to any notebook or only a notebook that was executed while live share was in progress?

DonJayamanne avatar Feb 05 '23 20:02 DonJayamanne

Thank you for answer,

  • sample notebook is just python code plotting two plots, you can plot sin function twice, and it will show the problem (actually will not show second plot) (remember that code must be in one notebook cell)
  • every notebook has this problem, I tried using old ones, create new, same issue, output is only one plot (what's more: when you get error or warning you will get only first message, for example: on 'server' live share site you have 2 warnings and after that 2 plots [because it plots things besides warnings]) If you need additional information, feel free to ask.

MattOrmianek avatar Feb 06 '23 20:02 MattOrmianek

Please could you share a sample notebook with some easy plot with few dependencies so I can try this at my end.

DonJayamanne avatar Feb 07 '23 01:02 DonJayamanne

Here it is: https://github.com/MattOrmianek/jupyter-testing/tree/main You have to install matplotlib lib for python.

MattOrmianek avatar Feb 07 '23 16:02 MattOrmianek

I believe I'm running into the same issue, and can reproduce in two steps, starting with an empty notebook.

Create an empty notebook test.ipynb, and compute a simple expression in the first cell:

image

Connect guest through liveshare (right window is guest):

image

I expect the output from the computation to appear on the guest screen, but it doesn't.

rsargent avatar Feb 18 '23 10:02 rsargent

I'm sorry i missed this issue, will look into this shortly and try to get and update on this soon.

DonJayamanne avatar Mar 21 '23 06:03 DonJayamanne

I can replicate this issue,

DonJayamanne avatar Mar 21 '23 07:03 DonJayamanne

Same issue here with 1.92.2 on both ends

Cell execution results are not visible on the guest

arkanoid87 avatar Oct 03 '24 23:10 arkanoid87

Ran into this issue as well today when hosting an interview with Live Share (version 1.0.5948).

Maybe a separate issue, or maybe related, but when I was testing it seemed to be related with the IPython display rendering.

For example, doing:

print('Hello World')
print('Hello World')

Will show both outputs.

However, doing:

display('Hello World')
display('Hello World')

the second block will not render for the guest.

Seems to be consistent. I don't have a Mac to test with but the same behavior occurred using Linux/Windows 10 guest systems (natively in VS Code) as well as Firefox and Chrome browsers.

Brian-Keith avatar Jan 22 '25 15:01 Brian-Keith