Skip to content

Commit

Permalink
Update jupyter config
Browse files Browse the repository at this point in the history
  • Loading branch information
morganjwilliams committed Jun 19, 2020
1 parent fc5e80a commit bcc6f86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions binder/nbconvert_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c = get_config()
c.ExecutePreprocessor.timeout = 300
9 changes: 8 additions & 1 deletion binder/postBuild
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion jupyter_config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"VoilaConfiguration": {
"template": "custom",
"enable_nbextensions": true
}
}

0 comments on commit bcc6f86

Please sign in to comment.