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

Move opening path in new browser tabs to a separate plugin#7056

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
jtpio merged 25 commits intojupyter:mainfromjtpio:window-opener-plugin
Sep 20, 2023

Conversation

@jtpio
Copy link
Member

@jtpiojtpio commentedSep 18, 2023
edited
Loading

This will help downstreams like JupyterLite configure how they open paths more easily, without having to redefine all the plugins.

Paths can be:

  • files, likeexample.py ornotebooks/example.ipynb
  • terminals
  • consoles

By default in Notebook 7 paths are opened are joined with/, for examplehttps://localhost:8888/notebooks/example.ipynb.
In the case of JupyterLite paths are opened by specifying the?path= query string parameter in the URL, for example:https://localhost:8000/notebooks?path=example.ipynb`.

To avoid having downstream applications like JupyterLite have to override several plugins to be able to customize the behavior ofwindow.open, the path opening logic is moved to a dedicated plugin so only that plugin would need to be redefined in other applications.

  • AddINotebookPathOpener to be able to override the URL for opening paths
  • Keep itoptional to not break existing behavior in potential downstream applications reusing some notebook plugins

@jtpiojtpio added this to the7.0.x milestoneSep 18, 2023
@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branchjtpio/notebook/window-opener-plugin

@jtpiojtpio marked this pull request as ready for reviewSeptember 19, 2023 09:28
@jtpiojtpio marked this pull request as draftSeptember 19, 2023 09:47
@jtpiojtpio marked this pull request as ready for reviewSeptember 20, 2023 06:48
@jtpiojtpio merged commit6246540 intojupyter:mainSep 20, 2023
@jtpiojtpio deleted the window-opener-plugin branchSeptember 20, 2023 06:48
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 22, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

@jtpiojtpio

Projects

None yet

Milestone

7.0.x

Development

Successfully merging this pull request may close these issues.

1 participant

@jtpio

[8]ページ先頭

©2009-2025 Movatter.jp