๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

TIL/Linux

์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ์— ๊ฐ€์ƒํ™˜๊ฒฝ ์ปค๋„ ์ถ”๊ฐ€

1. ๊ฐ€์ƒํ™˜๊ฒฝ ํ™œ์„ฑํ™”

$ source <๊ฐ€์ƒํ™˜๊ฒฝ>/bin/activate

pdf ๋ผ๋Š” ๊ฐ€์ƒํ™˜๊ฒฝ์„ ํ™œ์„ฑํ™” ์‹œํ‚ค๊ฒ ์Šต๋‹ˆ๋‹ค.

ex) source/pdf/bin/activate

 

2. ๊ฐ€์ƒํ™˜๊ฒฝ ๋‚ด์—์„œ ipykernel ์„ค์น˜

(๊ฐ€์ƒํ™˜๊ฒฝ)$ pip install ipykernel

 

3. ๊ฐ€์ƒํ™˜๊ฒฝ ๋‚ด์—์„œ ์ปค๋„ ๋“ฑ๋ก

(๊ฐ€์ƒํ™˜๊ฒฝ)$ python -m ipykernel install --user --name ๊ฐ€์ƒํ™˜๊ฒฝ --display-name "๋“ฑ๋ก๋  ์ด๋ฆ„"

ex) python -m ipykernel install --user --name pdf --display-name "pdf"

 

4. Jupyter Notebook์—์„œ ์ปค๋„ ํ™•์ธ

์ž˜ ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค~!

 

5. ๋“ฑ๋กํ•œ ์ปค๋„์„ ํ™•์ธ

$ jupyter kernelspec list

 

6. ๋“ฑ๋กํ•œ ์ปค๋„์„ ์ง€์šฐ๊ธฐ

$ jupyter kernelspec uninstall ์ปค๋„์ด๋ฆ„