positron icon indicating copy to clipboard operation
positron copied to clipboard

When plot pane is closed and reopened plot does not appear until positron is resized

Open testlabauto opened this issue 1 year ago • 4 comments

Positron Version: 2024.07.0-81

Steps to reproduce the issue:

  1. Create a plot
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig
  1. Close the plots pane
  2. Reopen the plots pane
  3. Note that plot is not visible
  4. Resize positron
  5. Note that plot is visible again

What did you expect to happen?

When plot pane is reopened plot appears without needing to resize positron.

Were there any error messages in the Output panel or Developer Tools console?

No

https://github.com/user-attachments/assets/094a5bd6-a3f9-4f0a-9af8-4532544e6798

testlabauto avatar Jul 19 '24 16:07 testlabauto

I've also seen somewhat similar behavior with the data explorer cc @petetronic - maybe the same issue?

jthomasmock avatar Jul 20 '24 00:07 jthomasmock

This is like the problem we had with Help in #2656.

juliasilge avatar Jul 22 '24 01:07 juliasilge

Strange, this was a case I definitely manually tested. Also in Positron Version: 2024.07.0 (Universal) build 85 it works as expected for me:

https://github.com/user-attachments/assets/270315ff-147e-419b-a631-4e8535f32b11

seeM avatar Jul 22 '24 12:07 seeM

On Positron 2024.07.0 (Universal) build 85, I see the same problem that @testlabauto observes:

https://github.com/user-attachments/assets/9ff67a30-0a48-41be-a490-eb48bee275ab

FWIW I confirmed that

  • static plots are fine (this is HTML interactive plots only, but both R and Python)
  • Help still works as expected

juliasilge avatar Jul 22 '24 15:07 juliasilge

Verified Fixed

Positron Version(s) : 2024.07.0-107
OS Version          : OSX

Test scenario(s)

Test scenario from original filing.

Link(s) to TestRail test cases run or created: N/A

testlabauto avatar Jul 29 '24 14:07 testlabauto