File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ RUN echo "Creating ${NB_USER} user..." \
14
14
# Make sure that /opt (where conda lives) is owned by non-root user, so we can install things there
15
15
&& chown -R ${NB_USER}:${NB_USER} /opt
16
16
17
+ # Copy jupyter_notebook_config.py /etc/jupyter so
18
+ # it will be read by jupyter processes when they start. This feature is
19
+ # not available in repo2docker.
20
+ RUN mkdir -p /etc/jupyter \
21
+ && cp jupyter_notebook_config.py /etc/jupyter
22
+
17
23
USER ${NB_USER}
18
24
19
25
# add the packages needed for jupyterhubs to the base environment
Original file line number Diff line number Diff line change
1
+ # from https://github.com/pangeo-data/pangeo-docker-images/blob/master/pangeo-notebook
2
+ import os
3
+
4
+ # Configure nb_conda_kernels to avoid registering jupyter kernels in our conda
5
+ # environment again.
6
+ c .CondaKernelSpecManager .env_filter = f'.*envs/{ os .environ ["CONDA_ENV" ]} .*'
You can’t perform that action at this time.
0 commit comments