stlite icon indicating copy to clipboard operation
stlite copied to clipboard

Support st.bokeh_chart

Open whitphx opened this issue 3 years ago • 3 comments

It raises an error such as

6.8fc22a8b.chunk.js:1 TypeError: Cannot read properties of undefined (reading 'embed')
    at BokehChart.tsx:109:13
    at BokehChart.tsx:123:5
    at Ls (6.8fc22a8b.chunk.js:1:1608317)
    at t.unstable_runWithPriority (6.8fc22a8b.chunk.js:1:1626130)
    at qi (6.8fc22a8b.chunk.js:1:1548488)
    at Ns (6.8fc22a8b.chunk.js:1:1607778)
    at 6.8fc22a8b.chunk.js:1:1607689
    at B (6.8fc22a8b.chunk.js:1:1625189)
    at E.port1.onmessage (6.8fc22a8b.chunk.js:1:1623911)

whitphx avatar Aug 03 '22 05:08 whitphx

The original Streamlit frontend loads the bokeh JS scripts from index.html and sets the global Bokeh object.

https://github.com/streamlit/streamlit/blob/1.13.0/frontend/public/index.html#L35-L41


If BokehJS is bundled to the Streamlit frontend, it becomes easier for stlite to import it too. -> https://github.com/streamlit/streamlit/issues/5528

whitphx avatar Oct 11 '22 14:10 whitphx

Experimental PR: #344

whitphx avatar Oct 12 '22 11:10 whitphx

Bokeh v3 is now installable on Pyodide, but Streamlit only supports v2.

whitphx avatar Feb 24 '23 03:02 whitphx