์ด ์ํํธ์จ์ด๋ ๋ค์ํ ์์น ํด๋ฒ์ Python
์ธ์ด์ ๊ทธ ํ์ฅ ๊ธฐ๋ฅ์ธ SciPy
๋ฅผ ์ด์ฉํ์ฌ ์ค๋ช
ํ๊ณ ์ ํจ.
This software aims to describe various numerical methods in Python
programming language and its extesion SciPy
.
How to Open in Google Colab
๊ตฌ๊ธ ์ฝ๋ฉ์์ ์ฝ๋ ๋ฒ
- Open an
ipynb
file of this repository
์ด ์ ์ฅ์์ipynb
ํ์ผ์ ์ถ - Click on
ํด๋ฆญ - Try
Run all
ofRuntime
๋ฐํ์
์๋๋ชจ๋ ์คํ
์๋
How to commit changes on Google Colab to Github
๊ตฌ๊ธ ์ฝ๋ฉ์ ๋ณ๊ฒฝ ์ฌํญ์ Github ์ ๋ฐ์ํ๋ ๋ฒ
- Fork the repository
์ ์ฅ์์ ๋ถ๊ธฐ ์ฌ๋ณธ์ ๋ง๋ฆ - Open the ipynb file from the forked repository
๋ถ๊ธฐ๋ ์ ์ฅ์์์ ipynb ํ์ผ์ ์ถ - Click on
ํด๋ฆญ - Make changes
ํ์ผ์ ์์ - Choose
Save a copy in GitHub
underFile
menuํ์ผ
๋ฉ๋ด ์๋Github ์ ์ฌ๋ณธ ์ ์ฅ
- Adjust permissions and/or retry if necessary
ํ์์ ๊ถํ ์กฐ์ ํ ์ฌ์๋
๊น ๋ฒ์ ๊ด๋ฆฌ ์ํํธ์จ์ด : ๋ช
๋ นํ ์คํ ํ๊ฒฝ
Git Version Control Software : Commadline interface
- ์ฐ๋ถํฌ ๋ฆฌ๋
์ค์ ๊ฒฝ์ฐ ๋ค์๊ณผ ๊ฐ์ด ์ค์น
For Ubuntu Linux, install as follows
apt-get install git
- Windows ์ ๊ฒฝ์ฐ ์๋ ๋งํฌ์์ ๋ค์ด๋ก๋ ๊ฐ๋ฅ
Download for Windows available at the following link : Git for Windows
- ๋ช
๋ นํ์์ ์ฌ์ฉ Command line interface
- ์ค์ต์ค ํ๊ฒฝ์์๋ credential manager ์ค์น ์ผ๊ฐ
Credential manager may not be a best choice for a computer lab - ์๋ IDE ๊ฐ์ด๋ฐ Microsoft Visual Studio Code ์ ํ์ ๋ค์๊ณผ ๊ฐ์ด ์๊ฐํด ๋ณผ ์ ์์
To use Microsoft Visual Studio Code among IDEs below, an administrator may consider followings
ํญ๋ชฉ Key |
๊ฐ Value |
---|---|
git ๊ธฐ๋ณธ ํธ์ง๊ธฐ Default editor for Git |
MS VS Code |
๊ฒฝ๋ก ํ๊ฒฝ ์กฐ์ Adjusting Path environment |
Use Git from the Windows Command Prompt |
ํฐ๋ฏธ๋ ์๋ฎฌ๋ ์ดํฐ Terminal emulator |
Use Windows' default console window |
์๊ฒฉ ์ธ์ฆ ๊ด๋ฆฌ์ ํ์ฑํ Enable Git Credential Manager |
์ ์ฐ ์ค์ต ํ๊ฒฝ์ ๊ฒฝ์ฐ, ์ ํ ํด์ If computer lab, unselect |
์ดํ MS vscode ์์๋ ํ๋๊ฐ์ง ์ถ๊ฐ ์ค์ ์ ์ค์ํ๋ฉด ๋ด์ฅ ํฐ๋ฏธ๋๋ก git-bash
๋ฅผ ์ฌ์ฉํ ์ ์์
With a few additional configurations in MS vscode, one could use git-bash
as the integrated terminal.
- Python 3.7 ์ดํ
Python 3.7 or latter - 64bit ํ ์ถ์ฒ
Recommend 64 bit versions - ๋ฆฌ๋
์ค ๋ช
๋ น์ด ํ๊ฒฝ์์ ๋ค์ ์คํ
Run following commands in a Linux shell
# Download & install miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
# Install python modules
git clone https://github.com/kangwonlee/nmisp
pushd nmisp
# You may choose a different environment configuration under ./tests/ folder
conda env create -n nmisp -f ./tests/environment.2020.07.yml
# Start the jupyter notebook
conda activate nmisp
jupyter notebook &
# please do not close the shell
# to run tests
pytest -n auto tests/
- Python 3.7.x ์ดํ
Python 3.7.x or latter - 2019.07ํ ์ดํ
Latter or equal to 2019.07 - ๋ช
๋ นํ์์ ์คํํด์ผ ํ ๊ฒฝ์ฐ, ๊ฒฝ๋ก์ ์ถ๊ฐํ๋๋ก ์ค์
To run from a command line, configure to add python to the PATH - ๊ฒฝ๋ก ์ด๋ฆ์ ํ๊ธ์ ์ฌ์ฉํ ์ ์์
Use ASCII characters for path name - In addition, some of the following modules may be needed
์๋ ๋ชจ๋ ์ค ์ผ๋ถ ์ถ๊ฐ ์ค์น๊ฐ ํ์ํ ์ ์์
conda install conda-forge::tensorflow
conda install pytorch::pytorch
conda install pytorch::torchvision
๊น ๋ฒ์ ๊ด๋ฆฌ ์ํํธ์จ์ด : ๊ทธ๋ํฝ ์คํ ํ๊ฒฝ
Git Version Control Software : Graphic user interface
์๋ ๊ฐ์ด๋ฐ ํ์ผ
Choose one from below
- iPython ๋
ธํธ๋ถ (
.ipynb
) ํ์ผ ์ฌ์ฉ์๋ ๋ฐ๋์ ํ์ํ์ง ์์ ์ ์์
May not need one for iPython notebook (.ipynb
) files - ์๋ ๊ฐ์ด๋ฐ ํ์ผ
Choose one from below
- Anaconda ์ ํจ๊ป ์ค์น๋ ์ ์์.
Anaconda may include spyder.
- PyCharm ์ ์คํ์ํค๊ธฐ ์ํด Java Development Kit ๋ฅผ ์ค์นํด์ผ ํ ์ ์์ (2016 09)
PyCharm may need Java Development Kit to run.
- Anaconda ์ค์น ํ ์ค์น ์ ํ ๊ฐ๋ฅ
Installation button available at the end of Anaconda installation - ๋ค์ด๋ก๋ ๋ฐ์์ ์ค์น๋ ๊ฐ๋ฅ
Possible to download and install from the website
Setup Overview / Python Configuration Instruction - Windows ์์
git-bash
๋ฅผ ๋ด์ฅ ํฐ๋ฏธ๋๋ก ์ฌ์ฉํ๋ ค๋ฉด ๋ค์๊ณผ ๊ฐ์ ์ถ๊ฐ ์ค์ ์ด ํ์ํจ.[์ฐธ๊ณ ]
In Windows, to usegit-bash
as the integrated terminal, following additional settings would eable it.[Ref]
- File > Preferences > Settings [์ฐธ๊ณ Ref]
"terminal.integrated.shell.windows": **path to bash.exe here**
- ์ด ์ ์ฅ์ ๋ ์ฃผ๋ก
jupyter
๋ ธํธ๋ถ์ผ๋ก ๋ง๋ค์ด์ ธ ์์.
This repository is mostly written injupyter
notebook. jupyter
๋ ธํธ๋ถ์ ์น๋ธ๋ผ์ฐ์ ๋ฅผ ํตํด ํ๋ก๊ทธ๋จ ์ฝ๋๋ฅผ ์์ ์คํํ๊ณ LaTex ์์์ ํฌํจํ ๋ฌธ์ ์์ฑ์ด ๊ฐ๋ฅํจ.
Through a web browser,jupyter
notebook enables editing & running program codes and writing documents including LaTex equations.
- ์ ๋นํ folder ๋ฅผ ๋ง๋ฆ
Make an appropriate folder - Git ๋๋ SourceTree ๋ฅผ ์ด์ฉํ์ฌ ์ folder ์๋ ์ด ์๊ฒฉ ์ ์ฅ์๋ฅผ
git clone
Using the Git or SourceTree,git clone
this repository under the folder cmd
๋๋git bash
์คํํ ํcd
๋ช ๋ น์ผ๋กclone
๋ ์ง์ญ ์ ์ฅ์ folder๋ก ์ด๋
Startcmd
orgit bash
and using thecd
command change working folder to the cloned foldercmd
๋๋git bash
์์ ๊ฐ๊ฐcd
๋๋pwd
๋กclone
๋ folder ์ธ์ง ํ์ธ
Check location usingcd
orpwd
incmd
orgit bash
jupyter notebook
์คํ
Runjupyter notebook
- ํ์์ ๋ฐ๋ผ
~/.bashrc
ํ์ผ์ ๋ค์ ๋ด์ฉ์ ์ถ๊ฐ
As necessary, add following lines to~/.bashrc
file
alias log='git log --oneline --graph --all --decorate'
alias nb='jupyter notebook --no-browser &'
- This software was initially supported by the Korea Ministry of Land, Infrastructure, and Transportation. It was also supported by the Korean Agency for Infrastructure Technology Advancement. (18TLRP-B117133-03)
์ด ์ํํธ์จ์ด๋ ๋ํ๋ฏผ๊ตญ ๊ตญํ ๊ตํต๋ถ ๊ฑด์ค๊ตํต๊ณผํ๊ธฐ์ ์งํฅ์ ๊ตํต๋ฌผ๋ฅ์ฐ๊ตฌ์ฌ์ ์ ์ง์์ ๋ฐ์ ์์๋์์. (18TLRP-B117133-03) - Also, this software got help from generative artificial intelligence : Google Gemini Advance in improving the text and source code quality.
๋ํ, ์ด ์ํํธ์จ์ด๋ ๋ฌธ์ฅ๊ณผ ์ฝ๋ ํ์ง ํฅ์์ ์ํด ์์ฑํ ์ธ๊ณต์ง๋ฅ ๊ตฌ๊ธ ์ ๋ฏธ๋ ์ด๋๋ฐด์ค์ ๋์์ ๋ฐ์์.