I have used the same approach as you but I can’t remember if it was from a Flask based app (it may have been in a notebook). This link seems to confirm the approach:

https://plotly.com/python/configuration-options/

I wonder if, for some reason, the config info is lost in the conversion to JSON. If so, the solution might to to set the config parameters in the JavaScript:

https://plotly.com/javascript/configuration-options/

Sorry, but I’m not able to try it out just at the moment

Technology, data science and programming

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alan Jones

Alan Jones

Technology, data science and programming

More from Medium

We are Live in Nomics.com Now

Breaking down the learning process — Wannabe Indie Gamedev #10

User Flow for Libby App to “Borrow” a Book

The world is more amazing than you think