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

Checkapp.shell.currentWidget for updating the tab title, if available#17772

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

Merged

Conversation

@jtpio
Copy link
Member

References

This should help JupyterLite reuse the lab plugin without modifications forjupyterlite/jupyterlite#1684, instead of having to redefine a full plugin providingStateDB.

Currently the function checks the URL to find the name of the file:

// File name from current path
letcurrentFile:string=PathExt.basename(
decodeURIComponent(window.location.href)
);

Code changes

  • Update the internalupdateTabTitle to take options
  • Checkapp.shell.currentWidget if available, default back to checkingwindow.location.href otherwise

User-facing changes

None for JupyterLab users.

JupyterLite users will see a tab title reflecting the path of the current widget. Testing this patch locally in JupyterLite withjupyterlite/jupyterlite#1684 :

Before

image

After

image

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

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Looks like this change comes from thepre-commit app being reactivated:jupyterlab/jupyter-ai#1388 (comment)

@jtpiojtpio marked this pull request as ready for reviewAugust 12, 2025 09:20
Copy link
Member

@krassowskikrassowski 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!

@krassowskikrassowski merged commite0ce38e intojupyterlab:mainAug 12, 2025
84 checks passed
@jtpiojtpio deleted the update-tab-title-current-widget branchAugust 12, 2025 17:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@krassowskikrassowskikrassowski approved these changes

Assignees

@jtpiojtpio

Projects

None yet

Milestone

4.5.0

Development

Successfully merging this pull request may close these issues.

2 participants

@jtpio@krassowski

[8]ページ先頭

©2009-2025 Movatter.jp