Guide for Python &
R
Seung Keun Song
Nov13 2024
Seung Keun Song
Research Assistance of Professor
Contact Hyoung Suk Shim
Info Email :
[email protected].
EDU
Python
Jupyter notebook
Index R
R studio
Installing Python
Check OS that works right on your
computer
When you install make sure that
There’s only English in file path
https://www.python.org/downloads/
How to Check It’s
Installed
• Use CMD(terminal for mac users)
type python(python3)
• Type : print(“hello world”)
Python IDE ( Integrated Development
Environment)
Jupyter
PyChar
Noteboo Others
m
k
How to download
Jupyter Notebook
Advantage of Using Anaconda
- It helps to manage all the
packages
- Make it more easier to link with
other programs(packages) https://www.anaconda.com/download
How to download
Jupyter Notebook
Using CMD or Terminal
- Easy installing
- Go to CMD(terminal) console and type pip
install jupyter
- Type jupyter notebook to start
Downloading Package(Library)
pip install package name
• numpy
• pandas
• sklearn
• ISLP
• torchinfo
• torchvision
• pip install pytorch-lightning==1.8.4 (This version is what the book is
using.)
Import Package
• import package name (as abbreviation of package
name)
• from package name import function name
E.g.
import numpy as np
from matplotlib.pyplot import subplots
Installing
R
Same as Python case, download file https://cloud.r-project.org/
that is suitable for your OS
When you install make sure that there
should be only English in file path
Checking R is
Installed Well
Find R and Run the
program
Type in R console
> print(“Hello World”)
Installing R
studio
Download free version
https://posit.co/downloads/ When you install check your file path (Only
English)