Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

htmlwidgets plot preview is showing entire UI #2968

Open
jonvanausdeln opened this issue May 1, 2024 · 6 comments
Open

htmlwidgets plot preview is showing entire UI #2968

jonvanausdeln opened this issue May 1, 2024 · 6 comments
Assignees
Labels
area: plots Issues related to Plots category. area: ui Issues related to UI category. bug Something isn't working lang: r os-windows Windows issue
Milestone

Comments

@jonvanausdeln
Copy link
Contributor

Positron Version:

2024.04.0-1579
Windows 11

Steps to reproduce the issue:

From #2843 (comment)

  1. Create html widget plots
library(ggplot2)
library(plotly)

df <- data.frame(x = 1:10, y = rnorm(10))
p1 <- ggplot(data = df, mapping = aes(x=x,y=y)) + geom_point() +
theme_bw()
p2 <- ggplotly(p1)
p2

library(dygraphs)
dygraph(nhtemp, main = "New Haven Temperatures") %>% 
  dyRangeSelector(dateWindow = c("1920-01-01", "1960-01-01"))
  1. Click through the plots in the plots pane
  2. Note the preview image
Issue.2843.mp4

What did you expect to happen?

I expected the previews to be just the plots, not the entire UI

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

No

@jonvanausdeln jonvanausdeln added bug Something isn't working os-windows Windows issue area: plots Issues related to Plots category. lang: r labels May 1, 2024
@juliasilge
Copy link
Contributor

I again wonder, like I did in #2559 (comment), if HTML content like this would be better in the Viewer (for more appropriate UI affordances and actions).

@jmcphers
Copy link
Collaborator

jmcphers commented May 7, 2024

I can't reproduce this. :-/

image

@jonvanausdeln
Copy link
Contributor Author

I just tried with latest release build 2024.05.0-1240 and I still see the issue. I guess I have a special machine ..

image

@petetronic
Copy link
Collaborator

I also cannot reproduce this, either local Windows dev build or using latest Win release:
Positron Version: 2024.05.0 (system setup) build 2024.05.0-1251
Code - OSS Version: 1.89.0
Commit: c0d8830
Date: 2024-05-15T13:25:34.889Z
Electron: 28.2.8
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22631

@juliasilge
Copy link
Contributor

juliasilge commented Sep 25, 2024

I did a usability testing session today and we saw something like this!

595D82A4-DA23-4260-BC08-AF5E583D37A9

What is shown in the thumbnail is not the entire UI but instead a chunk of it, overlapping with a Jupyter notebook and part of the Plots pane. It persisted through clicking back and forth through the filmstrip. So weird!

@DavisVaughan DavisVaughan added the area: ui Issues related to UI category. label Feb 5, 2025
@DavisVaughan DavisVaughan modified the milestones: Release Candidate, Future Feb 5, 2025
@dfalbel
Copy link
Contributor

dfalbel commented Feb 13, 2025

I can no longer reproduce with dygraphs, but can quite reliably using any DiagrammeR graph.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area: plots Issues related to Plots category. area: ui Issues related to UI category. bug Something isn't working lang: r os-windows Windows issue
Projects
None yet
Development

No branches or pull requests

6 participants