Merge pull request #1688 from minrk/no-trash

disable send2trash by default
This commit is contained in:
Carol Willing
2018-02-28 09:01:19 -08:00
committed by GitHub

View File

@@ -361,6 +361,12 @@ class SingleUserNotebookApp(NotebookApp):
hub_version = resp.headers.get('X-JupyterHub-Version')
_check_version(hub_version, __version__, self.log)
def initialize(self, argv=None):
# disable trash by default
# this can be re-enabled by config
self.config.FileContentsManager.delete_to_trash = False
return super().initialize(argv)
def start(self):
self.log.info("Starting jupyterhub-singleuser server version %s", __version__)
# start by hitting Hub to check version