Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Oct 29, 2024
2 parents 9feec1f + 2d981e2 commit 3ce08a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ ENV PATH="/sage:$PATH"

# Start in the home directory of the user
WORKDIR /home/${NB_USER}

# Create the jupyter_lab_config.py file with a custom logging filter to
# suppress the perpetual nodejs warning
RUN mkdir -p /home/${NB_USER}/.jupyter
RUN echo "\
import logging\n\
class NoNodeJSWarningFilter(logging.Filter):\n\
def filter(self, record):\n\
return 'Could not determine jupyterlab build status without nodejs' not in record.getMessage()\n\
logging.getLogger('LabApp').addFilter(NoNodeJSWarningFilter())\n\
" > /home/${NB_USER}/.jupyter/jupyter_lab_config.py

0 comments on commit 3ce08a2

Please sign in to comment.