Python

Jupyter notebook 자동줄바꿈

Jack Moon 2021. 11. 17. 17:30

Jupyter notebook에서 코드 작성시 줄바꿈 되지 않고 일렬로 쭉 늘어져 불편할 경우 아래와 같이 추가하면 된다.

 

C:\Users\사용자명\.jupyter\nbconfig\notebook.json

만약 nbconfig 폴더와 notebook.json 파일이 없으면 만든다. 

{
  "MarkdownCell": {
    "cm_config": {
      "lineWrapping": true
    }
  },
  "CodeCell": {
    "cm_config": {
      "lineWrapping": true
    }
  }
}

작성후 Jupyter notebook을 재실행 한다.