ng icon indicating copy to clipboard operation
ng copied to clipboard

ng: interaction with GUIs

Open sbinet opened this issue 7 years ago • 3 comments

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 ?)

sbinet avatar Dec 05 '17 17:12 sbinet

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.)

crawshaw avatar Dec 05 '17 20:12 crawshaw

okay. it would also enable code completion for the jupyter kernel.

sbinet avatar Dec 05 '17 20:12 sbinet

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).

crawshaw avatar Dec 05 '17 21:12 crawshaw