Use BokehJS in React Application


I try to use bokehjs directly in an React Application.
I created a template of a react App with :

npx create-react-app my-app

I try to import Bokeh :

import * as Bokeh from “@bokeh/bokehjs”;

I have a lot of errors of compilation. Is there any way to import Bokeh without errors and have access to Plotting module?

I know that i can import CDN but i want to do it in the right way.

Thank you very much

It looks like there is a relevant blog post here:

Embedding Bokeh into a ReactJS app using BokehJS | by Alexander Hupfer | Medium

I can’t speak to how accurate or up to date it might be. Developing BokehJS as a first-class JavaScript library is still an ongoing work in progress (more help is really needed)

@mateusz @Philipp_Rudiger may have additional thoughts or information to add

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.