You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a very non-informative error when trying to do a simple plot from one of the streaming examples (slightly modified) from the documentation.
I have a notebook with 2 cells, the first one:
Note: For some reason, each 1/10 times I execute the cell, I don't get the traceback, but the stream still stops, indicating that the error did occur. If you don't get a traceback while reproducing this, just try again.
At some point, the input pandas DataFrame is converted into a dictionary, changing the type of the index generated by streamz.dataframe.Random to float (rather than a pandas timestamp).
Since it expects the same type as the static example provided in the beginning of the stream, this TypeError is thrown.
Workaround: This happens with bokeh==0.12.14 (latest), but if I downgrade to bokeh==0.12.10, it works as expected.
My setup:
dferreira:/tmp$ virtualenv -p ~/.pyenv/versions/3.6.4/bin/python test
dferreira:/tmp$ cdtest
dferreira:/tmp/test$ source bin/activate
(test) dferreira:/tmp/test$ pip install jupyter bokeh streamz matplotlib pandas git+git://github.com/ioam/holoviews.git
(test) dferreira:/tmp/test$ jupyter notebook
# test example, get error
(test) dferreira:/tmp/test$ pip install -U bokeh==0.12.10
(test) dferreira:/tmp/test$ jupyter notebook
# test again, everything works
The text was updated successfully, but these errors were encountered:
This is fixed by #2383, which has already been applied in the last public release of holoviews (version 1.9.5). I've also just submitted a fix to bokeh to fix the underlying issue: bokeh/bokeh#7609
I'm getting a very non-informative error when trying to do a simple plot from one of the streaming examples (slightly modified) from the documentation.
I have a notebook with 2 cells, the first one:
and the 2nd:
When executing the 2nd cell, I get the following traceback:
Note: For some reason, each 1/10 times I execute the cell, I don't get the traceback, but the stream still stops, indicating that the error did occur. If you don't get a traceback while reproducing this, just try again.
At some point, the input pandas
DataFrame
is converted into a dictionary, changing the type of the index generated bystreamz.dataframe.Random
tofloat
(rather than a pandas timestamp).Since it expects the same type as the static example provided in the beginning of the stream, this
TypeError
is thrown.Workaround: This happens with
bokeh==0.12.14
(latest), but if I downgrade tobokeh==0.12.10
, it works as expected.My setup:
The text was updated successfully, but these errors were encountered: