]> git.parisson.com Git - telemeta.git/commitdiff
update notebook conf to use the shell_plus command from django-extensions
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 6 Nov 2017 18:29:06 +0000 (19:29 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 6 Nov 2017 18:29:06 +0000 (19:29 +0100)
app/settings.py
env/notebook.yml

index 9f68f60b5704208b60748b69acee0b5a9e385865..d6e37eaa3b233e98879598b81e9945e2e24d7976 100644 (file)
@@ -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'
+]
index 1e8438787aeec658a570d73b43f6406dbc9b487d..c11a40d2979cf0ff90d2b6003ad3d4e123f1f570 100644 (file)
@@ -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"