Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Hide modebar when "display"ing a FigureWidget?

I am displaying FigureWidgets with display (or returning the widget from the cell) in order to make use of event handlers (e.g. on_click). I need to hide the modebar for one of my figures, but the documentation and the answers in the forum say to pass a config option to show(). Since I’m "display"ing the FigureWidget, I don’t make a call to show(). How do I hide modebar in this scenario? Thanks!

I found an issue about this that’s been open for two years now: https://github.com/plotly/plotly.py/issues/1074
It looks like there are others as of 20 days ago interested in a fix for this with some (myself included) perhaps willing to make a community contribution if people familiar with the codebase could provide some pointers.