프로그래밍/Python
[Jupyter Notebook] 줄바꿈(word wrap, 워드랩) 적용하는 법
vince joe
2022. 8. 8. 21:48
줄이 길어질 때 자동으로 줄바꿈 되도록 설정해봅시다.
❯ jupyter --config-dir
/Users/vince/.jupyter
1) jupyter 설정폴더 찾기
기본값은 ~/.jupyter 입니다
{
"MarkdownCell": {
"cm_config": {
"lineWrapping": true
}
},
"CodeCell": {
"cm_config": {
"lineWrapping": true
}
}
}
2) (설정폴더)/nbconfig/notebook.json 파일 수정 (ex. ~/.jupyter/nbconfig/notebook.json)
마크다운 / 코드 cell의 lineWrapping을 true로 설정해줍니다
json이니 콤마(,) 위치에 주의해주세요
그럼 이렇게 화면 넘어가는 길이의 경우 줄바꿈이 적용됩니다. 원래는 스크롤해야돼서 좀 귀찮죠
반응형