Skip to content

Commit

Permalink
ml/pangeo-notebook: don't register the same jupyter kernels twice
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Mar 18, 2021
1 parent bef2c97 commit f309b52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ml-notebook/jupyter_notebook_config.py
Original file line number Diff line number Diff line change
@@ -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"]}.*'
5 changes: 5 additions & 0 deletions pangeo-notebook/jupyter_notebook_config.py
Original file line number Diff line number Diff line change
@@ -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"]}.*'

0 comments on commit f309b52

Please sign in to comment.