keller-mark / anyhtmlwidget

Bringing core concepts from anywidget to R
https://keller-mark.github.io/anyhtmlwidget/
Other
5 stars 0 forks source link

Support usage in Jupyter with R kernel #21

Open keller-mark opened 1 month ago

keller-mark commented 1 month ago

From @manzt, see https://github.com/manzt/anywidget/blob/main/anywidget/_descriptor.py and https://github.com/manzt/anywidget/blob/main/packages/deno/src/mod.ts Also look for an existing Comms implementation for R if it exists - check out https://github.com/IRkernel/IRkernel/blob/124f2347f15cfadeabc6738868e05e6087f4c456/NAMESPACE#L3

keller-mark commented 1 month ago

Also see https://github.com/jupyter/declarativewidgets/blob/d3422746e20780e7d1655337b0c3128962711b52/kernel-r/declarativewidgets/R/widget.r#L123

keller-mark commented 1 month ago

May need to port https://github.com/manzt/anywidget/blob/main/packages/deno/src/install.ts and uninstall to R

keller-mark commented 1 month ago

See https://github.com/keller-mark/anyhtmlwidget/commit/d7bb74a58301b2d69ff1f39b623c410e53ad07ca

keller-mark commented 1 month ago

See https://github.com/jupyter-xeus/xeus-r, https://github.com/jupyter-xeus/xeus-r/issues/43, and https://blog.jupyter.org/meet-xeus-r-a-future-proof-jupyter-kernel-for-r-1adc5fdd09ab

keller-mark commented 3 weeks ago

Also see https://github.com/posit-dev/ark and https://github.com/posit-dev/ark/blob/cf83ba65e125e1d965db3191c179600a61d50cfb/crates/ark/src/html_widget.rs#L33