nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

http no response when get plot #142

Closed lmdu closed 7 months ago

lmdu commented 7 months ago

Hi, and thank you for this greate pacakge!

I used rchitect and httpgd to interact with R and view plot. The httpgd server started ok. However, only the first thumbnail of plot can display, the maximized plot can not display. I am not sure the problem is httpgd or rchitect. Can you help me to solve this problem. Thanks!

To Reproduce

import time
import rchitect

rchitect.init()
rchitect.rcall('library', 'reticulate')
rchitect.rcall('library', 'httpgd')
rchitect.rcall('hgd')
rchitect.rcall('hgd_browse')

rchitect.reval('x<-c(1,2,3,4,5,6); y<-c(4,5,6,7,8,9); plot(x,y)')

time.sleep(10)

Environment

genmeblog commented 7 months ago

@lmdu can you elaborate a little bit how did you resolve this issue? I'm experienceing the same with the different setup.

lmdu commented 7 months ago

I have not resolved the issue. I used httpgd api in R instead of http to get svg plot.