๐ฃ๏ธ vscode์์ jupyter pythonpath ์ค์ ํ๊ธฐ
jupyter์์ ๋ก์ปฌ๋ก ์์ ํ ๋ชจ๋์ ์ง์ ๋ถ๋ฌ์ค๊ธฐ ์ํด์ pythonpath ์ค์ ์ด ํ์ํฉ๋๋ค. pycharm์ ๊ฒฝ์ฐ ์๋์ผ๋ก ํ์ฌ ํด๋ path๋ฅผ python path๋ก ์ค์ ํด์ฃผ์ง๋ง vscode๋ ๋ฐ๋ก ์ค์ ์ด ํ์ํฉ๋๋ค. ๋ฐฉ๋ฒ์ ๋งค์ฐ ๊ฐ๋จํฉ๋๋ค! jupyter setting์ ์๋๋ฅผ ์ถ๊ฐํด์ฃผ๋ฉด ๋์ด์์.
code-preferences-settings-jupyter ๊ฒ์-edit in setting.json ํด๋ฆญ
์๋์ ์ฝ๋๋ฅผ ์ ์ด์ฃผ๋ฉด ๋ฉ๋๋ค. ์ด๋ฏธ์ง์์ ๋งจ ์๋ซ์ค์ ์ ํ์๋ ์ฝ๋์์.
"jupyter.notebookFileRoot": "${workspaceFolder}"
์๋์ฒ๋ผ tree ๊ตฌ์กฐ๋ฅผ ๊ฐ์ง๊ณ ์์ ๋ notebook์์ ๋ฌธ์ ์์ด ๋ถ๋ฌ์ฌ ์ ์๋ ๊ฒ์ ํ์ธํ์ค ์ ์์ต๋๋ค!
์ด ๋ฌธ์ ๋ฅผ ๋ชป ํ์ด์ 2๋ฌ์ ๋ ๊ณ์ ์์นํ์๋๋ฐ ํด๊ฒฐํ๋ ๊ต์ฅํ ๊ธฐ๋ถ ์ข๋ค์!!!๐