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() x2
Co-authored-by: Emily KL <[email protected]>
  • Loading branch information
ayjayt and emilykl authored Aug 14, 2025
commit 8036084fb4dc881edd311054845fc8c531be8550
4 changes: 2 additions & 2 deletions plotly/io/_kaleido.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ def to_image(
)
height = (
height
or fig_dict.get("layout").get("height")
or fig_dict.get("layout").get("template", {}).get("layout", {}).get("height")
or fig_dict.get("layout", {}).get("height")
or fig_dict.get("layout", {}).get("template", {}).get("layout", {}).get("height")
or defaults.default_height
)

Expand Down