Skip to content

fix(notebooks): give the header logo a height, so Colab does not distort it - #915

Merged
petercorke merged 1 commit into
mainfrom
fix/colab-logo-aspect
Nov 1, 2026
Merged

petercorke merged 1 commit into
mainfrom
fix/colab-logo-aspect

Conversation

@petercorke

Copy link
Copy Markdown
Owner

On Google Colab the logo in each notebook's header was stretched, because the <img> had only a width. It now has width="200" height="201", the image's native size (the PNG is 201 x 202). It is a little smaller than before, which also looks better. Twelve notebooks change, one line each.

Does this change numerical results or public behaviour? No. It changes the header image attributes only.

Tested by hand: the new attributes display correctly on Colab and locally. Not checked: JupyterLite, other browsers.

This change was written with Claude Code (Claude Sonnet 5.5).

🤖 Generated with Claude Code

…ort it

Colab stretched the logo, which had only a width. Set the width and height to
the image's native size, 200 x 201. The header is otherwise unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit fc7c832 into main Nov 1, 2026
24 checks passed
@petercorke
petercorke deleted the fix/colab-logo-aspect branch November 1, 2026 06:27
@github-actions github-actions Bot mentioned this pull request Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant