How to make responsive plotly in python

Hi

I understand it looks crazy. I actually use ipython notebook for blogging.

  1. I create the post in ipython
  2. Export to html
  3. Fit as iframe in wordpress post.

Below is the sample link: https://www.rparthiban.com/articles/misc/test-plotly/

It is ok and manageable in desktop layout but in mobile, the diagrams are horribly squeezed. Please check above link in mobile or image here: https://cubeupload.com/im/17O4Qf.jpeg

Kindly help

I understand it looks crazy. I actually use ipython notebook for blogging.

Not crazy – I did the same recently, and it turned out quite nice for desktop/laptop: Relaxometry Series: Inversion Recovery | qMRLab

Same issue re:mobile, it would be great if we could at least set relative units. I know Plotly.js recently had a reactive/fluid layout option added recently (see here: Responsive / fluid layouts in JavaScript), would be great if it was available on Python Plotly.

1 Like