IT정보/코딩

jupyter notebook 설정 방법(크롬에서 실행, 시작 폴더 설정)

미친 통계학자 2020. 12. 22. 13:50
반응형

(1) jupyter notebook 크롬에서 실행하기

1. jupyter notebook --generate-config을 Windows PowerShell이나 Anaconda Prompt에서 실행

 

2. 생성된 jupyter_notebook_config.py 파일을 찾아 메모장에서 편집해야함. 메모장 창에다가 해당 파일을 끌면 편집할 수 있음

 

3. #c. NotebookApp.browser를 찾아 c.NotebookApp.browser = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'으로 변경

※ 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'는 보통 크롬이 설치되는 경로이므로 다른 곳에 설치된 경우 해당 경로로 바꿔줘야함

 

4. 메모장을 저장한 뒤 jupyter notebook을 실행하면 크롬으로 실행되는 것을 확인할 수 있음

 

 

(2) jupyter notebook 시작 폴더 설정하기

1. jupyter_notebook_config.py 파일을 찾아 메모장에서 편집

 

2. #c.NotebookApp.notebook_dir = ''를 찾아 c.NotebookApp.notebook_dir = 'C:/Users/USER/Desktop/' 같이 변경

 

3. 메모장을 저장한 뒤 jupyter notebook을 실행하면 바탕화면 파일이 보이는 것을 확인할 수 있음

 

 

※ 참고문헌

sosomemo.tistory.com/57

 

Jupyter Notebook 크롬으로 실행하는 법

Jupyter Notebook의 실행 브라우저를 기본 브라우저 변경 없이 설정 수정만으로 Chrome으로 바꿔보겠습니다. Jupyter Notebook의 경우 IE (Internet Explorer) 보다는 Chrome에서 훨씬 더 빠르게 동작합니다...

sosomemo.tistory.com

stackoverflow.com/questions/35254852/how-to-change-the-jupyter-start-up-folder

 

How to change the Jupyter start-up folder

I tried following the instructions given on the Jupyter Notebook documentation. Unfortunately, I haven't been able to figure it out. Where exactly is this "start in" field? I've a windows 7 (64 b...

stackoverflow.com

 

반응형