Skip to content

Jupyter Setting

JihunJung edited this page Oct 17, 2019 · 1 revision
  • Install Jupyter
$ pip install jupyter
  • Config Setting

    • Default config 파일 생성
    # /home/[user name]/.jupyter/ 하위에 default config(jupyter_notebook_config.py) 파일 생성됨
    $ jupyter notebook --generate-config
    • Config 수정
    $ cd ~/.jupyter
    $ vi jupyter_notebook_config.py
    
    $ ipython                                                                                                                                   
    In [1]: from IPython.lib import passwd
    In [2]: passwd()
    Enter password: 
    Verify password: 
    Out[2]: '[password key]'
    In [3]: ^D  #(^D를 입력하여 종료)                                                                                                              
    Do you really want to exit ([y]/n)? y
    
    ######################### modify #########################
    # default ip : 0.0.0.0
    # localhost만 접속 가능 : 127.0.0.1
    c.NotebookApp.ip = ‘0.0.0.0’
    
    # 접속 port 수정
    c.NotebookApp.port = 8888
    
    # 초기 실행 위치
    c.NotebookApp.notebook_dir = ‘[directory path]’
    
    # 최초 실행시 browser에 open 유무
    c.NotebookApp.open_browser = False
    
    # passward설정
    c.NotebookApp.password = '[input password key]'
    ##########################################################
  • Background 실행 방법

    • 실행 명령어 뒤에 "&" 붙이기
    # 실행한 terminal종료시 jupyter notebook도 함께 종료 됨
    $ jupyter notebook &
    • nohup 명령어 사용
    # 기본 사용 법
    # terminal 종료시에도 프로그램 종료 안됨
    $ nohup jupyter notebook &
    # "nohup.out" 파일이 생성되며 출력 저장
    
    # 강제 종료 방법
    $ ps aux | grep jupyter
    $ kill -i [PID]
    
    # nohup.out 파일 생성 안하고 실행하는 방법
    $ nohup jupyter notebook >/dev/null 2>&1 &
  • build kernel 추가방법

$ sudo apt-get install ipykernel
$ python -m ipykernel install --user --name [virtual env name] --display-name “[Display name on jupyter]”
  • HOME
    1. Environment Setting
      • Install CUDA
      • Install cuDNN
      • Python Setting
        • Install Python
        • virtualenv setting
        • Jupter setting
    2. DeepLearning Basic
      • To do
    3. Object Detection
      • How to use TensorFlow Object Detection API
      • Remote Tensorboard Connection
      • How to use pycocotools for managing dataset(Using coco format)
    4. TensorFlow
      • To do
    5. Ubuntu
      • User management
      • SSH connect(with login message)
      • File Transfer between local and remote
    6. ETC
      • To do

Clone this wiki locally