parambokeh/__init__.py
def _get_customjs(self, change, p_name):
        """
        Returns a CustomJS callback that can be attached to send the
        widget state across the notebook comms.
        """
        data_template = "data = {{p_name: '{p_name}', value: cb_obj['{change}']}};"
        fetch_data = data_template.format(change=change, p_name=p_name)
        self_callback = JS_CALLBACK.format(comm_id=self.comm.id,
                                           timeout=self.timeout,
                                           debounce=self.debounce,
                                           plot_id=self.plot_id)
        js_callback = CustomJS(code='\n'.join([fetch_data,
                                               self_callback]))
        return js_callback
def _get_customjs(self, change, p_name):
        """
        Returns a CustomJS callback that can be attached to send the
        widget state across the notebook comms.
        """
        data_template = "data = {{p_name: '{p_name}', value: cb_obj['{change}']}};"
        fetch_data = data_template.format(change=change, p_name=p_name)
        self_callback = JS_CALLBACK.format(comm_id=self.comm.id,
                                           timeout=self.timeout,
                                           debounce=self.debounce,
                                           plot_id=self.plot_id)
        js_callback = CustomJS(code='\n'.join([fetch_data,
                                               self_callback]))
        return js_callback
def _get_customjs ( self , change , p_name ) : data_template = "data = {{p_name: '{p_name}', value: cb_obj['{change}']}};" fetch_data = data_template . format ( change = change , p_name = p_name ) self_callback = JS_CALLBACK . format ( comm_id = self . comm . id , timeout = self . timeout , debounce = self . debounce , plot_id = self . plot_id ) js_callback = CustomJS ( code = '\n' . join ( [ fetch_data , self_callback ] ) ) return js_callback
Returns a CustomJS callback that can be attached to send the
        widget state across the notebook comms.
Returns a CustomJS callback that can be attached to send the widget state across the notebook comms .