httpgd no longer working in radian
Closed this issue · 12 comments
Recently, httpgd devices have stopped working in radian R sessions, while continuing to work just fine in a normal R session.
Steps to reproduce
Start radian
Run httpgd::hgd()
and open the supplied URL.
Generate a plot, for example with plot(rnorm(100))
.
In the browser window, the thumbnail of the generated plot is displayed, but the actual plot area stays empty. Subsequent plotting commands have no effect at all. Quitting the radian R session using q()
does not work, the session hangs.
Other info
In a standard R session everything works just fine.
I'm using R 4.3.2 on macOS 13.6, radian version 0.6.8, Python 3.11.6. httpgd: current HEAD on GitHub and version 1.3.1.
Other Python packages:
rchitect 0.4.4
prompt-toolkit 3.0.40
pygments 2.16.1
wcwidth 0.2.9
cffi 1.16.0
six 1.16.0
pycparser 2.21
I downgraded to radian==0.6.6 with rchitect==0.3.39 but it is the same.
I had upgraded my venv last weekend and the issue probably started happening at that point, because I remember having used httpgd with radian just fine last week.
The problem is prompt-toolkit ≥ 3.0.40. Downgrade to prompt-toolkit==3.0.39 and it works again.
Ping @jonathanslenders
The diff from 3.0.39 to 3.0.40: prompt-toolkit/python-prompt-toolkit@490cf90...b6a9f05
@randy3k Any idea what could have caused this? Maybe prompt-toolkit/python-prompt-toolkit@27cb5c0?
Ping @renkun-ken as the R Extension for Visual Studio Code recommends the use of radian and httpgd.
I had a similar issue of rendering plots using httpgd. I am using macOS 13.6, R 4.3.1, and radian 0.6.8. Downgrading to prompt-toolkit==3.0.39 using pip install --force-reinstall prompt-toolkit==3.0.39
has solved this issue on my system.
Oh, good find. Let me check wha
T they have changed.
Looks like 3.0.41 has a fix for Ipython. Though it doesn't work for us.
I've upgraded to 3.0.41 and the problem persists. Downgrading to 3.0.39 fixed it.
I've upgraded to 3.0.41 and the problem persists. Downgrading to 3.0.39 fixed it.
Can confirm this worked. In addition to downgrading to prompt-tookit 3.0.39
, I had to downgrade radian
to v 0.6.7 for compatibility.
The current version of radian should be compatible with the new version of prompt-toolkit.
The current version of radian should be compatible with the new version of prompt-toolkit.
I can confirm that it works with the latest versions of radian
(currently v0.6.9) and prompt-tookit
(currently v3.0.41).
This can be verified by anyone with a GitHub account on my reference deployment at https://demo.jupyter.b-data.ch.
The current version of radian should be compatible with the new version of prompt-toolkit.当前版本的弧度应该与新版本的prompt-toolkit兼容。
I can confirm that it works with the latest versions of
radian
(currently v0.6.9) andprompt-tookit
(currently v3.0.41).我可以确认它适用于最新版本的radian
(当前为 v0.6.9)和prompt-tookit
(当前为 v3.0.41)。This can be verified by anyone with a GitHub account on my reference deployment at https://demo.jupyter.b-data.ch.任何拥有我的_参考部署_( https://demo.jupyter.b-data.ch)上的 GitHub 帐户的人都可以验证这一点。
I don’t know why. I am now configuring the same version under my win system and cannot draw. Now I can only give up radian