Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add proper defaults to dict .get()
Co-authored-by: Emily KL <[email protected]>
  • Loading branch information
ayjayt and emilykl authored Aug 14, 2025
commit e8049a2e303f0fc14a0e93122b3bb6b48c628ba1
4 changes: 2 additions & 2 deletions plotly/io/_kaleido.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ def to_image(

width = (
width
or fig_dict.get("layout").get("width")
or fig_dict.get("layout").get("template", {}).get("layout", {}).get("width")
or fig_dict.get("layout", {}).get("width")
or fig_dict.get("layout", {}).get("template", {}).get("layout", {}).get("width")
or defaults.default_width
)
height = (
Expand Down