From a0c8b850fcb78c96701ab14512f36711fb5f4e42 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 6 Nov 2017 19:29:06 +0100 Subject: [PATCH] update notebook conf to use the shell_plus command from django-extensions --- app/settings.py | 9 +++++++++ env/notebook.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/settings.py b/app/settings.py index 9f68f60b..d6e37eaa 100644 --- a/app/settings.py +++ b/app/settings.py @@ -366,3 +366,12 @@ BOWER_INSTALLED_APPS = ( # 'https://github.com/Parisson/loaders.git', # 'https://github.com/Parisson/ui.git', ) + + +NOTEBOOK_ARGUMENTS = [ + '--ip=0.0.0.0', # reach notebooks from outside + '--port=8888', # std port + '--no-browser', # don't start browser on start + '--allow-root', + '--notebook-dir', '/srv/app' +] diff --git a/env/notebook.yml b/env/notebook.yml index 1e843878..c11a40d2 100644 --- a/env/notebook.yml +++ b/env/notebook.yml @@ -24,4 +24,4 @@ app: ports: - "8888:8888" - command: sh -c "cd /srv/src/timeside/docs/ipynb; jupyter notebook --allow-root --no-browser --ip=0.0.0.0" + command: "python manage.py shell_plus --notebook" -- 2.39.5