Skip to content

Commit

Permalink
Merge pull request #420 from jitseniesen/disable-stuff
Browse files Browse the repository at this point in the history
PR: Remove notebook menu items that do not work properly
  • Loading branch information
jitseniesen authored May 21, 2023
2 parents 012a09d + 77a33eb commit 3d4a3f2
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 3d4a3f2

Please sign in to comment.