streamz icon indicating copy to clipboard operation
streamz copied to clipboard

Show streamz.DataFrame in notebook with ipywidgets>8

Open hoxbro opened this issue 1 year ago • 5 comments

ipywidgets version 8.0 no longer uses _ipython_display_, giving the following error in a notebook when trying to display a streamz dataframe.:

image

This PR adds a check for __repr_mimebundle__ and uses it if it exists.

https://user-images.githubusercontent.com/19758978/189519705-e60d336d-ccfe-491a-a84b-fe49b0c9c30b.mp4

hoxbro avatar Sep 11 '22 09:09 hoxbro

Funny that the fix for deprecated _ipython_display_ is inside a function of the same name :) This makes sense, thank you.

martindurant avatar Sep 12 '22 18:09 martindurant

It seems this CI needs a little attention :|

martindurant avatar Sep 12 '22 18:09 martindurant

Funny that the fix for deprecated ipython_display is inside a function of the same name :)

Yeah, the irony was not lost on me either.

hoxbro avatar Sep 13 '22 14:09 hoxbro

I have not yet had much success fixing things in #455 ; the problem stems from the deprecation of loop= in dask-distributed, conflicting with the old tornado logic still scattered around this repo.

martindurant avatar Sep 13 '22 14:09 martindurant

No worries, nothing urgent in getting this merged.

hoxbro avatar Sep 13 '22 15:09 hoxbro