Black Lives Matter. Please consider donating to Black Girls Code today.

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: https://qmrlab.org/jekyll/2018/10/23/T1-mapping-inversion-recovery.html

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: https://plot.ly/javascript/responsive-fluid-layout/), would be great if it was available on Python Plotly.