diff --git a/ml-notebook/jupyter_notebook_config.py b/ml-notebook/jupyter_notebook_config.py new file mode 100644 index 00000000..1d5e5598 --- /dev/null +++ b/ml-notebook/jupyter_notebook_config.py @@ -0,0 +1,5 @@ +import os + +# Configure nb_conda_kernels to avoid registering jupyter kernels in our conda +# environment again. +c.CondaKernelSpecManager.env_filter = f'.*envs/{os.environ["CONDA_ENV"]}.*' diff --git a/pangeo-notebook/jupyter_notebook_config.py b/pangeo-notebook/jupyter_notebook_config.py new file mode 100644 index 00000000..1d5e5598 --- /dev/null +++ b/pangeo-notebook/jupyter_notebook_config.py @@ -0,0 +1,5 @@ +import os + +# Configure nb_conda_kernels to avoid registering jupyter kernels in our conda +# environment again. +c.CondaKernelSpecManager.env_filter = f'.*envs/{os.environ["CONDA_ENV"]}.*'