Bokeh demo doesn't work in the latest release 0.81.0

Hi,

I want to report a new issue. I ran the demo in [https://docs.streamlit.io/en/0.62.0/api.html?highlight=bokeh#streamlit.bokeh_chart
with streamlit ==0.81.0 and bokeh==2.2.2]. It prompted TypeError. It worked under streamlit==0.80.0 and Bokeh==2.2.2.

Code:
import streamlit as st
from bokeh.plotting import figure

x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]

p = figure(
title=‘simple line example’,
x_axis_label=‘x’,
y_axis_label=‘y’)

p.line(x, y, legend_label=‘Trend’, line_width=2)

st.bokeh_chart(p, use_container_width=True)

Error:
TypeError: Type error

n@http://localhost:8502/static/js/10.d6e51b1b.chunk.js:2:485213
Ot@http://localhost:8502/static/js/10.d6e51b1b.chunk.js:2:487498
http://localhost:8502/static/js/10.d6e51b1b.chunk.js:2:487579
a@http://localhost:8502/:1:1108
http://localhost:8502/static/js/24.1ef414d0.chunk.js:2:190
a@http://localhost:8502/:1:1108
a@[native code]
promiseReactionJob@[native code]

Thanks.

Hi @tonylegend, thanks for reporting. I sent this to our engineering team, and I think there will be a patch release in the next few days to fix this.

Best,
Randy

Hey @tonylegend

Just letting you know we just pushed out 0.81.1 which reverts an upgrade to Bokeh that has caused some issues. If you install Bokeh version 2.0.0 with this Streamlit release. It should work as expected.

1 Like

Thanks for the quick fix, Streamlit team. I already verified it with version 0.81.1. It works well with Bokeh==2.2.2. :grinning:

Tony

1 Like