Dynamic change scale from linear to log

You can do something like below:


def function_to_change_log():
    if log_hist_cb.active:
           if log_hist_cb.active[0] == 0:
                        log_hist = numpy.log(your_dataframe)
                            
log_hist_cb = CheckboxGroup(
            labels=["Log transform axis"], active=[])

The example is here: https://github.com/samirak93/ML_Tool/blob/ff24f178afc03ff8aeb1ba6d76f930353a8c17f8/main.py#L367