Embedding data and graphs (bokeh-javascript, python)

Hello webflow community,

I want to do the following:
1- get the user data via forms,
2- get the entered fields from the user in the form, and call an API based on the entered fields (to do calculations based on the user entered data),
3- get data back from the API
4- show the data on the screen in a graph.

for the graphing part, I’m hoping to use a javascript code. for example, the package “bokeh” in python produces html codes with embedded javascript, to produce dynamic graphs that can change based on the user entry fields. I failed to add the produced graphs to the page, using the “embed code” block.

Please let me know what you think about these steps.

Ali K