@mromanel The code you copied is from May 2018, but as noted later in the thread, a dash update seems to have broken that solution. The most recent posts in the thread (April 2020) contain a solution that I just verified is working in Plotly pip version 4.10.0.
As noted in the linked GitHub issue, I am still hoping for a solution upstream at plotly.js, but I haven’t looked into this lately.
Also, not to be rude, is there any reason you made a new thread here vs adding to the old thread?