How to download python in windows and run with Jupiter and sublime.

why python? Python is a programming language that lets you work more quickly and integrate your systems more effectively. <– (Introduction on the official website), and also my favorite language.

Here, I will show how to download python and run with Jupiter and Sublime

Goto https://www.python.org/, click download, windows

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-1024x599.png

Choose you version, for me, I will download python 3.7 (64bit)

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-1-1024x720.png

open the installer, remember to Check Add Python3.* to PATH, and Just click Install Now.

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-3.png

Download Sublime, https://www.sublimetext.com/

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-4-1024x448.png

Click next and install it.

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-5.png

Fisrt program

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-6.png

CTRL + SHIFT + P type python, and save the file and with .py

CTRL + B to run the code

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-7-1024x873.png

Install Jupyter

Windows + R and type CMD

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-8.png

If the python’s installation is correct, pip should show something, if you did not see it, try to fix it with following url.

http://ouyangminwei.com/index.php/2021/09/16/how-to-solve-pip-not-found/

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-9-1024x590.png

Pip is a python package manager, you can type ‘pip install notebook’ to install Jupyter.

pip install notebook

And type ‘jupyter notebook’ to start the jupyter notebook

jupyter notebook
這張圖片的 alt 屬性值為空,它的檔案名稱為 image-10-1024x349.png

It will open a web page, press new and select python3 to start a new script

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-11-1024x382.png

And you start your coding

這張圖片的 alt 屬性值為空,它的檔案名稱為 image-12-1024x260.png

Commonly used Jupyter shortcut keys

Function short key
Show all the shortcutH
command modeEsc
edit modeEnter
Save notebooks
Create a new cell abovea
Create a new cell belowb
delete celldd
undoz
run the current cell, select belowShift + Enter
run selected cellsCtrl + Enter
Alt + Enterrun the current cell, insert below
分類: Uncategorized,標籤: , 。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *