rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

Extracting and working on selected data

Open DavidVirant opened this issue 6 years ago • 3 comments

Hey,

Would it be possible to extract data selected in a Bokeh scatter plot back into Python? For example, I have a scatter plot, I select a small subset of the points and they are returned as an array with their x and y positions,a s well as any other indices they might have?

If it's not possible now, is there any chance you might add support for something like this in the future?

Cheers!

DavidVirant avatar Aug 02 '18 07:08 DavidVirant

I'm not sure why you speak about Python, since this repo is for rbokeh, the R version of bokeh. If you work with bokeh in Python, you should have a look at callbacks here. In R, callbacks are possible in Shiny applications. See here and here.

Atrebas avatar Sep 04 '18 12:09 Atrebas

I'm not sure why you speak about Python

People sometimes use both R and Python together in the same project

bryevdv avatar Sep 04 '18 14:09 bryevdv

Yes, that's possible.

Atrebas avatar Sep 04 '18 15:09 Atrebas