New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatable and Glyph selections not linking properly #8021

Closed
bryevdv opened this Issue Jun 22, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@bryevdv
Copy link
Member

bryevdv commented Jun 22, 2018

One ref is: #2323 (comment)

Alternatively, run models/file/data_tables.py The first selection of glyphs updates the table selection. No subsequent selection does.

Possibly related to #8014 as well, the issue may be that there is inconsistency in when and whether selected is changed vs selected.indices

ANY solution to this must provide the following

  • documention (in a wiki, docs, somewhere) of all known expected requirements of tables.
  • provide runnable examples that can be used to exercise all the requirements

Additionally, this would be a good chance to get some kind of selenium tests up and running, either run ourselves on travis or run again on sauce labs. The whack-a-mole with table regressions has to stop.

@bryevdv

This comment has been minimized.

Copy link
Member Author

bryevdv commented Jun 27, 2018

also possibly related #7944

@chaseharper

This comment has been minimized.

Copy link

chaseharper commented Aug 27, 2018

Hello,

First of all, thank you for Bokeh, it is an excellent library! I have been having the same or a similar issue as described above and was wondering if any resolution or work around is available for this?

I do not have any experience with and do not quite understand callbacks, but I am thinking a call back from the TapTool and a Callback on the DataTable could achieve the functionality.

Simply put, I have a Figure and DataTable displaying on the same page with a shared ColumnDataSource. I am not sure if any of the following information is necessary or relevant but below are some other observations I have made:

I am using Bokeh Server to launch my script

  • Upon initial launch of the page selecting any row on the DataTable will repeatedly select the corresponding glyph on the Figure.
  • Selecting a glyph on the Figure will 'break' this functionality.
  • Upon initial launch of the page selecting a glyph on the Figure will bring the corresponding row on the DataTable into view, however this only works once.
  • (I discovered this one by accident, I left the page loaded after I shut down the bokeh server) once you shut down the bokeh server {ctrl+c in the command prompt} selecting a glyph on the Figure will repeatedly select the corresponding row on the DataTable; however the inverse behavior described above where you can select a row on the DataTable and the corresponding glyph on the Figure no longer works.

Again thank you for Bokeh!

@bryevdv bryevdv referenced this issue Oct 9, 2018

Merged

DataTable data model fixes #8310

6 of 6 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment