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