I love Bokeh’s ability to make standalone html files! However, I have not figured out how to send a list/collection/dictionary/whatever of Bokeh objects to a CustomJS method.
I recently had a Python project where I would create a simple line-and-marker plot for a set of 4 dimensional data. I had controls to allow you to set the vertical and horizontal axis to any of the 4 supported by the data. However, I sent each line-and-marker object to each CustomJS seperately with a hard coded name. As more data became available, I had to add in the code to deal with those additional sets by hand. It isn’t scalable.
Is there a better way than automating writing Python code to deal with a variable number of Bokeh objects being passed to CustomJS?
Is there a maximum limit to the number of Bokeh objects that can be passed in a CustomJS call?