Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Remove notebook menu items that do not work properly #420

Merged
merged 1 commit into from
May 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions spyder_notebook/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ class SpyderNotebookHandler(NotebookBaseHandler):
def get_page_config(self):
page_config = super().get_page_config()
page_config['darkTheme'] = self.extensionapp.dark_theme
page_config['disabledExtensions'] = [
# Remove editor-related items from Settings menu
'@jupyterlab/fileeditor-extension',
# Remove items Open JupyterLab and File Browser from View menu
'@jupyter-notebook/application-extension:pages',
# Remove toolbar button Interface > Open With JupyterLab
'@jupyter-notebook/lab-extension:interface-switcher',
# Remove Launch Jupyter Notebook File Browser from Help menu
'@jupyter-notebook/lab-extension:launch-tree'
]
return page_config

@web.authenticated
Expand Down