Skip to content

Only load notebook export plugin on the notebook page - #8133

Open
Yash990-bit wants to merge 1 commit into
jupyter:mainfrom
Yash990-bit:fix/export-menu-notebooks-only
Open

Yash990-bit wants to merge 1 commit into
jupyter:mainfrom
Yash990-bit:fix/export-menu-notebooks-only

Conversation

@Yash990-bit

Copy link
Copy Markdown

References

Fixes #8098

Code changes

  • Moved @jupyterlab/notebook-extension:export from "/" to "/notebooks" in app/package.json so the Save and Export Notebook As submenu is only registered on the notebook page instead of appearing as an empty submenu on non-notebook pages (/tree, /edit, /consoles, /terminals).
  • Added UI tests in ui-tests/test/editor.spec.ts and ui-tests/test/tree.spec.ts to verify that Save and Export Notebook As does not appear in the File menu on /edit and /tree.

User-facing changes

File > Save and Export Notebook As is no longer shown on unsupported pages such as /tree and /edit, while continuing to work as expected on /notebooks.

Backwards-incompatible changes

None.

@github-actions

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch Yash990-bit/notebook/fix%2Fexport-menu-notebooks-only

This branch has not been deployed

No deployments
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.

Save and export as... Option should be greyed out on unsupported files as the full menu doesn't appear

1 participant