ng
ng copied to clipboard
ng: interaction with GUIs
let's say I have a nice library that can display scientific plots, using x/exp/shiny
.
to be able to use it from the ng
prompt, one would need to replace the ng.main
entrypoint with shiny
's driver.Main(func(scr screen.Screen) { ... })
and coordinate with shiny
event pump.
do we want to open this can of worms?
(perhaps, like for Jupyter, we could run ng
with shiny-graphics when the -shiny
flag is passed ?)
from previous experience with matplotlib
, I know this can be quite painful...
(perhaps a better avenue is to os/exec
a sub command where the shiny
event loop is installed and send the images over there ?)
I would like to make it super-easy to write an ng-style binary using the ngcore package.
To do that more machinery from ng needs to move into ng core. (For example, code completion.)
okay. it would also enable code completion for the jupyter kernel.
In fact, the end state should be the ng binary using ngcore. Basically the only code in there should be flag handling and calling features that aren't directly implemented by ngcore (like -jupyter, or -o).