datajoint-python icon indicating copy to clipboard operation
datajoint-python copied to clipboard

Table attribute tooltip display position in Jupyter Notebook

Open eywalker opened this issue 8 years ago • 7 comments
trafficstars

The HTML tooltip that displays when you hover over the HTML rendered table in Jupyter Notebook doesn't work so well when the table is long horizontally such that the entire table does not display fully (i.e. there is a horizontal scroll bar in the cell displaying the table). The tooltip is designed to appear immediately below the original location that the column attribute was rendered and thus this can be actually hidden from the cell's view. Even if not hidden, the moment you scroll the table cell horizontally, the tooltip's horizontal location is no longer aligned to the attribute it's associated with.

A potential way to get around this problem is to display the tooltip at the mouse location.

eywalker avatar Feb 18 '17 00:02 eywalker

how can this be fixed?

dimitri-yatsenko avatar Jul 12 '17 21:07 dimitri-yatsenko

I am not sure how this can be done. Moving to 0.13

dimitri-yatsenko avatar Oct 19 '18 20:10 dimitri-yatsenko

I think this is a Jupyter issue and I am not sure if there is anything we can do other than redirecting it to the jupyter team.

dimitri-yatsenko avatar Nov 26 '18 15:11 dimitri-yatsenko

I actually think this is a CSS issue and thus not Jupyter issue.

eywalker avatar Nov 26 '18 15:11 eywalker

I am not sure if this is both present in the classical Jupyter notebook and in Jupyter lab? I only saw it in lab so far. Would be great if it could be fixed!

horsto avatar Nov 27 '18 19:11 horsto

In either case, this is really not an issue we can fix in datajoint, right?

dimitri-yatsenko avatar Nov 29 '18 20:11 dimitri-yatsenko

It is - we wrote the code that displays the DataJoint table. It is entirely on us to fix it 😄

eywalker avatar Nov 29 '18 21:11 eywalker