How to get mouse position with bokeh server?

I want to get the mouse position in a plot via a callback function using bokeh server. A solution for the latest bokeh version 2.0.2 would be great.

So far I found this old solution which does not work any more due to deprecation of the tool_events attribute in the figure object.

I have found this javascript example which does not work for the boekh server context.

Can you help me find a solution?

Answered at https://stackoverflow.com/a/62235478/564509

yes, I know, thanks.