That seems fine. It will replace the entire Bokeh document. It is also possible to update existing plots “in place” by just setting new data on existing data sources, etc. It’s not really possible to offer guidance about “better” without knowing more about what you are doing, what your goals are, etc.
So far I have not find any useful information
Cool thanks for the answer nonetheless! I’m for sure a worse JS programmer than you.
Well for simple my goal is to use Python/Flask for backend (math, geodesic calculations and Bokeh for generating some plots) and React for frontend since it generates a faster and cleaner UI. In the end I’m satisfied now. It was just that I wanted to have found easier information on how or which BokeJS bundle/module was ‘typescripted capable’ of being imported. That’s for sure because I’m novice in JS too.
Either way thanks again for the answer.