Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error background configurable from rendermime settings#18219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
brichet wants to merge2 commits intojupyterlab:main
base:main
Choose a base branch
Loading
frombrichet:error-background-color

Conversation

@brichet
Copy link
Contributor

This PR allows configuring the background color for stderr (cell output error).

output.webm

References

Fixes#7892

Code changes

Add a settings schema for the rendermime-extension plugin, with options to set the color in light and dark mode.

User-facing changes

The background color of the error if configured.

Backwards-incompatible changes

None

@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch onbinder, follow this link:Binder

@brichetbrichet added trigent: triageIssues that have been triaged by the agent and removed pkg:rendermime labelsDec 16, 2025
@brichetbrichet marked this pull request as ready for reviewDecember 16, 2025 12:02
@brichetbrichet changed the titleSet the error background configurable from rendermime settingsError background configurable from rendermime settingsDec 16, 2025
@brichetbrichet added this to the4.6.0 milestoneDec 16, 2025
Comment on lines +2 to +5
"title": "RenderMime",
"description": "RenderMime settings.",
"jupyter.lab.setting-icon": "ui-components:text-editor",
"jupyter.lab.setting-icon-label": "RenderMime",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I understand that the rationale for adding it inrendermime-extensions is that--jp-rendermime-error-background is used inrendermime stylesheet. There are some reasons not to favour this:

  • we need another settings tab and users may struggle to find this setting
  • we need to choose icon and title for this settings tab, which are not obviously easily understood (MIME was replaced by Media types in standards, MIME is formal capitalization), the icon for it is not obvious.
  • users get another single-setting (ok, two-setting) tab

And advantage of NOT adding it notebook settings is that it allows to apply the setting to both Notebook and Console.

What if instead we added this to Theme settings? After all,--jp-rendermime-error-background values are defined in individual themes. Also, it already has some CSS overrides:

Image

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we need to choose icon and title for this settings tab, which are not obviously easily understood (MIME was replaced by Media types in standards, MIME is formal capitalization), the icon for it is not obvious.

I asked myself the same, and decide to not add one 😄

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It looks fine to add it to the theme manager plugin 👍

Comment on lines +7 to +18
"errorBackgroundLight": {
"title": "Error Background Color (Light Theme)",
"description": "Background color for error output in light themes",
"type": "string",
"default": "#fdd"
},
"errorBackgroundDark": {
"title": "Error Background Color (Dark Theme)",
"description": "Background color for error output in dark themes",
"type": "string",
"default": "#600"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This could be nested into

"errorBackground": {   "title": "Error Background Color"  "type": 'object"  "properties": {    "light": ...    "dark": ...  }}

The advantage is that it will render nicely grouped for the user.

brichet reacted with thumbs up emoji
@brichetbrichet marked this pull request as draftDecember 18, 2025 17:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@krassowskikrassowskikrassowski left review comments

Assignees

@brichetbrichet

Labels

enhancementpkg:rendermimetrigent: triageIssues that have been triaged by the agent

Projects

None yet

Milestone

4.6.0

Development

Successfully merging this pull request may close these issues.

Customize background color for stderr in cell output

2 participants

@brichet@krassowski

[8]ページ先頭

©2009-2025 Movatter.jp