How to implement an interactive bokeh viz in FastAPI?

@wgpubs In principle you could certainly have CustomJS callbacks that make fetch calls to REST APIs (in general—I don’t think there is anything specific at all about FastAPI) and then use the response to update a Bokeh plot or whatever. Something vaguely along the lines of

// completely untested pseudocode 
fetch('http://example.com/movies.json')
  .then(response => response.json())
  .then(data => {
    source.data = {
      titles: response['titles'],
      stars: response['stars'],
  }
});

But I don’t have any concrete examples to offer, and I am not specifically aware of hearing about anyone doing this ether.