Jupyter Notebook實用指令

在 Jupyter Notebook中運行Python程式

%run python.py

載入python程式碼

%load python.py

顯示 magic 指令

%magic

載入matplotlib

%matplotlib inline

顯示圖片

from IPython.display import Image
from IPython.core.display import HTML
PATH = "small_tree.png" #圖片路徑
Image(filename = PATH , width=850, height=600)

切換目錄

%cd data
#切換到data資料夾

列出當前目錄的檔案

! ls

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store