
Hello Bokeh community,
I would like to post a problem I’m having with updating .text property of a bokeh Div widget when pressing a button in the Front-end. I currently require to update a Div widget with a new calculated text. The problem is that it’s taking too long to reflect the change in th Front-end. I timed the operation in the backend (currently I’m doing a random) but it takes few miliseconds to process and in the front-end it takes around 15 seconds to show the update. I tried using Paragraph widget instead of Div but it didn’t make a difference.
Here is an image of what I’m currently trying to do:


Here is the code for updating the .text Div
def optimizar(self):
restricciones = {}
for var in self.var_influyentes:
condicion1 = self.dyn_row_list[var].low_condition_select.value
condicion2 = self.dyn_row_list[var].high_condition_select.value
dict_condicion1 = self.create_dict_condicion(num_condicion=1,
condicion=condicion1,
val_condicion_raw=self.dyn_row_list[var].low_inter_text.value)
dict_condicion2 = self.create_dict_condicion(num_condicion=2,
condicion=condicion2,
val_condicion_raw=self.dyn_row_list[var].high_inter_text.value)
if dict_condicion1:
dict_condicion1.update(dict_condicion2)
restricciones.update({var: dict_condicion1})
self.dyn_row_list[var].var_found_value.text = f'<b>{round(random.uniform(0,20),2)}</b>'




