갈루아의 반서재


아나콘다 가상환경 구축시 주피터 노트북은 기본적으로 설치가 된다. 설치되어 있는 주피터 노트북의 버전을 확인해보자. 

1
2
(dominika) founder@hilbert:~/teamgalois$ jupyter notebook --version
5.6.0
cs


1
2
(dominika) founder@hilbert:~/teamgalois$ which jupyter-notebook
/home/founder/anaconda3/bin/jupyter-notebook
cs

주피터 노트북 설정 파일을 생성한다.

1
2
3
4
 
(dominika) founder@hilbert:~/teamgalois$ jupyter notebook --generate-config
Writing default config to: /home/founder/.jupyter/jupyter_notebook_config.py
 
cs

해당 경로로 이동하여 설정 파일을 연 다음 다음 내용을 추가한다. 기본적으로 노트북 설정 파일은 모두 주석처리가 되어 있다. 

/home/founder/.jupyter/jupyter_notebook_config.py

1
2
3
4
5
= get_config()
c.IPKernnelApp.pylab = 'inline'
c.NotebookApp.open_browser = False
c.NotebookApp.token = ''
c.NotebookApp.port = 8888
cs


외부에서 접근가능하도록 방화벽 규칙 생성후, 노트북을 실행한다.

1
2
3
4
5
6
7
8
9
10
11
(dominika) founder@hilbert:~/teamgalois$ jupyter notebook --ip=0.0.0.0 --no-browser --port=8888
[W 07:24:54.967 NotebookApp] All authentication is disabled.  Anyone who can connect to this server will be able to run code.
[I 07:24:55.000 NotebookApp] JupyterLab extension loaded from /home/founder/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 07:24:55.000 NotebookApp] JupyterLab application directory is /home/founder/anaconda3/share/jupyter/lab
[I 07:24:55.004 NotebookApp] Serving notebooks from local directory: /home/founder/teamgalois
[I 07:24:55.004 NotebookApp] The Jupyter Notebook is running at:
[I 07:24:55.004 NotebookApp] http://(hilbert or 127.0.0.1):8888/
[I 07:24:55.004 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 07:25:04.572 NotebookApp] 302 GET / (111.222.33.440.92ms
 
 
cs


브라우저에서 실행한 모습이다.



참조링크 

Running a notebook server https://jupyter-notebook.readthedocs.io/en/latest/public_server.html