I need to figure out a way to have the source data return to its original state before CustomJS applies its logic so that CustomJS doesn't progressively work with a reduced dataset every time the user selects a choice.
# scripts/bokeh_optimal_clusters.py filter_answered = checkbox_categorical_filter(src_ans) checkbox_group.js_on_change('active', filter_answered) # scripts/functions/bokeh_callbacks.py def checkbox_categorical_filter(src_ans): return CustomJS(...)
Here's the repo.
Thanks!
I managed to fix the bug here.
Key is to pass all bokehs source objects to CustomJS, process the data using the original source and pass the filtered one.
2.1m questions
2.1m answers
60 comments
57.0k users