- ์ฒซ ๋ฒ์งธ ๊ณผ์ .ipynb, ๋ ๋ฒ์งธ ๊ณผ์ .ipynb, ์ธ ๋ฒ์งธ ๊ณผ์ .ipynb๋ฅผ ํ์ด ์ฃผ์๋ฉด ๋ฉ๋๋ค.
ํ์ด์ฌ์ ์ธ ๊ฐ์ง ์ฃผ์ ์ด์ ์ฒด์ (Microsoft Windows, macOS, Linux)์์ ๋ชจ๋ ์ฌ์ฉํ ์ ์์ผ๋ฉฐ, ์ค์น ํ๋ก๊ทธ๋จ๊ณผ ์ค๋ช ์๋ ๊ณต์ ํ์ด์ฌ ์น์ฌ์ดํธ(https://www.python.org)์์ ๋ค์ด๋ก๋ํ ์ ์์ต๋๋ค.
Side Note: "IPython Notebook" recently became the "Jupyter Notebook"; Jupyter is an umbrella project that aims to support other languages in addition to Python including Julia, R, and many more. Don't worry, though, for a Python user, there's only a difference in terminology (we say "Jupyter Notebook" now instead of "IPython Notebook").
Jupyter ๋ ธํธ๋ถ์ ํ์์ฒ๋ผ pip๋ฅผ ํตํด ์ค์นํ ์ ์์ต๋๋ค.
$ pip install jupyter notebook
๋๋ Anaconda๋ Miniconda๊ฐ ์ค์น๋์ด ์๋ค๋ฉด Conda ์ค์น ํ๋ก๊ทธ๋จ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
$ conda install jupyter notebook
Jupyter ๋
ธํธ๋ถ์ ์ด๋ ค๋ฉด ์ฝ๋ ์์ ๊ฐ ์๋ ๋๋ ํ ๋ฆฌ๋ก cd๋ฅผ ์
๋ ฅํฉ๋๋ค. ์:
$ cd ~/code/python-basic
jupyter notebook์ ์คํํ์ฌ ์์ํฉ๋๋ค.
$ jupyter notebook
Jupyter๋ ๊ธฐ๋ณธ ๋ธ๋ผ์ฐ์ ์์ ์์ํฉ๋๋ค(์ผ๋ฐ์ ์ผ๋ก http://localhost:8888/์์ ์คํ). ์ด์ Jupyter ๋ฉ๋ด์์ ์ด๋ ค๋ ๋ ธํธ๋ถ์ ๊ฐ๋จํ ์ ํํ ์ ์์ต๋๋ค.
Jupyter Notebook์ ๋ํ ์์ธํ ๋ด์ฉ์ Jupyter ์ด๋ณด์ ๊ฐ์ด๋์ Jupyter Notebook ๊ธฐ๋ณธ ์ฌํญ์ ์ฐธ์กฐํ์ธ์.
Jupyter Notebook์ ๋์์ธ Jupyter Lab์ด 2018๋
์ ์ถ์๋์์ต๋๋ค. ๋์ผํ .ipynb ํ์ผ ์ ํ์ผ๋ก ์๋ํ์ง๋ง ๋ธ๋ผ์ฐ์ ์ธํฐํ์ด์ค์์ ๋ช ๊ฐ์ง ์ถ๊ฐ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค. Jupyter Notebook์ ์ฌ์ฉํ๋ Jupyter Lab์ ์ฌ์ฉํ๋ ์ ํธ๋ ๋ฌธ์ ์ด์ง๋ง
Jupyter Lab์ ๋ค์์ ํตํด ์ค์นํ ์ ์์ต๋๋ค.
$ conda install -c conda-forge jupyterlab
Jupyter Notebook์ ์์ํ๋ ๊ฒ๊ณผ ์ ์ฌํ๊ฒ ๋ค์ ๋ช ๋ น์ ์คํํ ์ ์์ต๋๋ค.
$ jupyter lab
๋ธ๋ผ์ฐ์ ์์ Jupyter Lab ์ธ์ ์ ์์ํ๋ ค๋ฉด ๋ช ๋ น์ค ํฐ๋ฏธ๋์์ ๋ค์์ ์ํํฉ๋๋ค. Jupyter Lab ํ๋ก์ ํธ์ ๋ํ ์์ธํ ๋ด์ฉ์ https://jupyterlab.readthedocs.io/en/stable/ ์์ ๊ณต์ ๋ฌธ์๋ฅผ ๋ฐฉ๋ฌธํ์ธ์.

