Is there any way to add buttons to the modeBar in Python with custom functionality? I understand that I might have to write some javascript for the click function, but I still want to be able to add the button in the config of Python.
Secondary question: Is there any way to make the click function call a python function instead of javascript?