Plotly renderer limits for headless container deployment
0 reputation · 03 Nov 2022, 14:58 UTC
Goal: Configure Plotly so that figures render or export correctly in headless production containers without requiring a graphical display or additional browser dependencies.
Constraints: The solution must avoid installing heavy GUI libraries, remain compatible with Plotly versions 4.x‑5.x, and work both for standalone scripts and Dash callbacks that return images or HTML. Uncertainty remains about which renderer provides the most reliable SVG output globally and whether setting a default renderer affects online plotting mode or offline file generation.
What renderer setting yields consistent SVG output without needing Kaleido or Orca? Is it safe to apply plotly.io.renderers.default = 'svg' globally across development and production? How does this setting interact with plotly.offline.plot and plotly.plot (online) modes?