Could someone let me know what similar commands exists that I can use in from_py_func()
inCustomJS,I dosomething like
m_code = “”"
selection = require(“core/util/selection”)
def update_subplot(allSource = mainplot_source, window=None):
#todo
#…
#index = allSource.selected.indices
indices = selection.get_indices(allSource)"""
I want the same indices in this:
uHelper.main_plot.js_on_event(Tap, CustomJS.from_py_func(uHelper.update_subplot))
``
Thanks a lot
