Skip to content

[help wanted] seems httpgd plot backend will freeze vscode-r extension #950

Answered by nx10
TTTPOB asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be a client issue. When I run this code in the vscode-r viewer the UI becommes laggy:

mat <- matrix(rnorm(30*200), nrow=30)
heatmap(mat)

However when it is closed and I open the httpgd client with e.g. httpgd::hgd_view() it runs smoothly.

The vscode-r viewer actually handles plots a bit differently and will load and append the SVG element directly to the editor DOM which might be the cause for the performance issues. @ManuelHentschel what do you think would be the best way to fix this?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ManuelHentschel
Comment options

@nx10
Comment options

@TTTPOB
Comment options

Answer selected by renkun-ken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants