Path: blob/main/Db2-L3-Tech-Lab/start_jupyter.sh
1928 views
# Run as regular user (resanders)12#-------------------------------------------------------------------------------------------------#3# NOTE: As part of installation, run this command: #4# jupyter notebook --generate-config #5# #6# This will create the following file: #7# /home/resanders/.jupyter/jupyter_notebook_config.py #8# #9# Open this file and locate the following line: #10# # c.NotebookApp.use_redirect_file = True #11# #12# Change the line to this: #13# c.NotebookApp.use_redirect_file = False #14# #15# This can be done programatically by executing the following code in a shell script: #16# #17# userDir=${HOME} #18# cfgFileName="${3}/.jupyter/jupyter_notebook_config.py" #19# searchStr="# c.NotebookApp.use_redirect_file = True" #20# replaceStr="c.NotebookApp.use_redirect_file = False" #21# sed -i "s/${searchStr}/${replaceStr}/" ${cfgFileName} #22#-------------------------------------------------------------------------------------------------#2324jupyter notebook --notebook-dir=/home/resanders/JNotebook --ip='*' --port=8888 --allow-root252627