@
jupyter notebook
@
Markdown
# Jupyter
## 1. What is it
### 1.1 Image
@
Run cell - shift enter
split cell - alt enter
insert cell
@
$\frac{1}{2}$ in markdown mode
@
from IPython display import image image(url="https://raw.githubusercontent.com/.../xxx.png", width=200, height=100)
from IPython display import YouTubeVideo YouTubeVideo("ffexeif9ffa")
@
table
import pandas as pd
url="https://raw.git.../xxx.csv"
pd.read.csv(url, nrows=10)
@
chart
import matplot.lib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('result')
plt.show()
@
performance check
%timeit 3+4
%timeit add(3,4)
%% 를 쓰면 한 셀 전체에 적용된다
%%timeit
a = [1,2,3]
a = [x+1 for x in a]
file - download as