Skip to content

Conversation

@jtpio
Copy link
Member

@jtpio jtpio commented Mar 26, 2025

References

Noticed when trying to add support for the down area in Notebook 7.

Current the logconsole plugin has a hard requirement on ILabShell, which makes reusing the plugin downstream difficult.

Code changes

Handle the case where ILabShell is missing.

User-facing changes

None for JupyterLab users.

Chances to get the log console to work for Notebook users.

Using this patch downstream in Notebook:

image

Backwards-incompatible changes

None

@jupyterlab-probot
Copy link

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

@jtpio jtpio added this to the 4.4.0 milestone Mar 26, 2025
@github-actions github-actions bot added tag:CSS For general CSS related issues and pecadilloes Design System CSS labels Mar 26, 2025
@jtpio jtpio marked this pull request as ready for review March 26, 2025 19:59
return labShell.currentPath;
}
// For other shells, set the source to the current widget path
if (currentWidget && currentWidget instanceof DocumentWidget) {
Copy link
Member Author

Choose a reason for hiding this comment

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

For reference, this follows the same approach used by ILabShell:

if (current && current instanceof DocumentWidget) {
newValue = current.context.path;
}

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thank you @jtpio!

@krassowski krassowski merged commit 5ce9e8c into jupyterlab:main Mar 27, 2025
85 checks passed
@jtpio jtpio deleted the logconsole-plugin-fix branch March 27, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Design System CSS maintenance pkg:logconsole tag:CSS For general CSS related issues and pecadilloes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants