이번 장에서는 지난 블로그에 이어서 첫 번째 목표였던 Jupyter notebook을 설치한다. 세부 목표는 다음과 같다.
먼저, GCP에서 서버를 켜고 MobaXterm에 들어가서 해당 서버에 들어간다.

$ wget https://repo.anaconda.com/archive/Anaconda3-2023.07-2-Linux-x86_64.sh
yes 를 작성하고 엔터를 누른다.

vi ~/.bashrc
a를 눌러 insert 모드로 들어가 제일 하단에 내려가 다음을 입력한다.export PATH=/home/review/anaconda3/bin:$PATH
esc + shift + ;를 같이 누른다.
wq를 입력한다.

$ source ~/.bashrc
다음의 코드를 통해 잘 설치되었는지 확인한다.
$ conda --version

$ ipython
In[1]: from notebook.auth import passwd
In[2]: passwd()
토큰값을 복사해둔다.
exit를 입력한다.

$ jupyter notebook --generate-config
$ vi ~/.jupyter/jupyter_notebook_config.py
a버튼을 눌러 insert 모드로 바꾼다.
다음의 코드를 삽입한다.
.NotebookApp.allow_root=True
c.NotebookApp.ip='0.0.0.0'
c.NotebookApp.notebook_dir='/home/review'
c.NotebookApp.password= 복사해 둔 토큰값

esc + shift + ;를 같이 누른다.
wq를 입력한다.
jupyter notebook
고정 IP주소:8888

