kangwonlee / nmisp

Numerical Methods in SciPy
Other
10 stars 60 forks source link
jupyter-notebook linear-algebra numerical-integration numerical-methods ordinary-differential-equations pandas pylab python root-finding scipy-stack tutorial

CI

사이파이 수치 해석
Numerical Methods in SciPy

소개
Introduction

이 소프트웨어는 다양한 수치 해법을 Python 언어와 그 확장 기능인 SciPy 를 이용하여 설명하고자 함.
This software aims to describe various numerical methods in Python programming language and its extesion SciPy.

How to Open in Google Colab
구글 코랩에서 읽는 법

  1. Open an ipynb file of this repository
    저장소ipynb 파일을 엶
  2. Click on Open In Colab
    Open In Colab 클릭
  3. Try Run all of Runtime
    런타임 아래 모두 실행 시도

How to commit changes on Google Colab to Github
구글 코랩의 변경 사항을 Github 에 반영하는 법

  1. Fork the repository
    저장소의 분기 사본을 만듦
  2. Open the ipynb file from the forked repository
    분기된 저장소에서 ipynb 파일을 엶
  3. Click on Open In Colab
    Open In Colab 클릭
  4. Make changes
    파일을 수정
  5. Choose Save a copy in GitHub under File menu
    파일 메뉴 아래 Github 에 사본 저장
  6. Adjust permissions and/or retry if necessary
    필요시 권한 조정 후 재시도

설치 항목
Software to install

깃 버전 관리 소프트웨어 : 명령행 실행 환경
Git Version Control Software : Commadline interface

apt-get install git
간단한 추천 사항
A few simple recommendations
항목
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 Programming Language

Miniconda

# 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/

Anaconda

conda install conda-forge::tensorflow
conda install pytorch::pytorch
conda install pytorch::torchvision

깃 버전 관리 소프트웨어 : 그래픽 실행 환경
Git Version Control Software : Graphic user interface

아래 가운데 택일
Choose one from below

통합 개발 환경
Integrated Development Environment

Spyder

PyCharm Community

Microsoft Visual Studio Code

  1. File > Preferences > Settings [참고 Ref]
  2. "terminal.integrated.shell.windows": **path to bash.exe here**

설치 동영상
Installation video

설치 동영상 Installation video

jupyter 노트북
jupyter notebook

jupyter 노트북 실행시키는 법
How to start the jupyter notebook

alias log='git log --oneline --graph --all --decorate'
alias nb='jupyter notebook --no-browser &'

실행 동영상 (git bash)
Instruction video (git bash)

실행 동영상 (SourceTree) Instruction video (SourceTree)

알림
Acknowledgement