From bcc6f8616ec4213cb73bac0b72bbbff997f160cd Mon Sep 17 00:00:00 2001 From: Morgan Williams Date: Fri, 19 Jun 2020 22:34:38 +0800 Subject: [PATCH] Update jupyter config --- binder/nbconvert_config.py | 2 ++ binder/postBuild | 9 ++++++++- jupyter_config.json | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 binder/nbconvert_config.py diff --git a/binder/nbconvert_config.py b/binder/nbconvert_config.py new file mode 100644 index 0000000..2d00045 --- /dev/null +++ b/binder/nbconvert_config.py @@ -0,0 +1,2 @@ +c = get_config() +c.ExecutePreprocessor.timeout = 300 diff --git a/binder/postBuild b/binder/postBuild index 53a308b..e96ebc4 100644 --- a/binder/postBuild +++ b/binder/postBuild @@ -1,10 +1,17 @@ # the following is required for ipyvolume widgets jupyter-nbextension enable widgetsnbextension --py +# for ipyvolume, if using lab: +#jupyter labextension install @jupyter-widgets/jupyterlab-manager +#jupyter labextension install ipyvolume +#jupyter labextension install jupyter-threejs + # make sure we have a place where we can pick up the custom template mkdir -p ~/.jupyter/voila/templates/ mkdir -p ~/.local/share/jupyter/voila/templates cp -r ./custom/ ~/.jupyter/voila/templates/ cp -r ./custom/ ~/.local/share/jupyter/voila/templates -cp -r ./custom/ /srv/conda/envs/notebook/share/jupyter/voila/templates + +# set up jupyter notebook config for voila +cat ./binder/nbconvert_config.py >> ~/.jupyter/jupyter_notebook_config.py diff --git a/jupyter_config.json b/jupyter_config.json index b14161b..c568b23 100644 --- a/jupyter_config.json +++ b/jupyter_config.json @@ -1,6 +1,5 @@ { "VoilaConfiguration": { - "template": "custom", "enable_nbextensions": true } }