jupyter notebook安裝與配置

jupyter notebook是一個很是好用工具,和ipython有點相似,可是比ipython使用起來更加方便。它可以記錄咱們全部操做記錄及輸出結果,可以支持matplotlib可視化,實際工做中,一些邏輯處理能夠在jupyter先實現,而後再添加到IDE中。python

在咱們安裝完成Python以後,可使用pip命令進行安裝,具體以下:瀏覽器

pip install jupyter notebookide

jupyter notebook安裝與配置

安裝完成以後運行:jupyter notebook,以下圖:
jupyter notebook安裝與配置工具

瀏覽器中打開地址以下圖:
jupyter notebook安裝與配置命令行

在開始以前咱們配置工做目錄:
命令行輸入: jupyter notebook --generate-config 生成配置文件
jupyter notebook安裝與配置
打開文件,設置工做目錄:
jupyter notebook安裝與配置
結果以下:
jupyter notebook安裝與配置
從新啓動Jupyter,結果以下:
jupyter notebook安裝與配置
建立一個工做目錄與Python文件,運行結果以下:
jupyter notebook安裝與配置
若是咱們想要在另外一臺電腦訪問頁面,啓動Jupyter時須要添加IP地址,以下:
jupyter notebook安裝與配置
在另外一臺電腦使用瀏覽器打開這個地址就可使用了。ip

下面咱們來看Jupyter使用:
新建一個文檔:
jupyter notebook安裝與配置
看下輸入:
jupyter notebook安裝與配置
在這裏輸入一條而後運行:文檔

jupyter notebook安裝與配置

快捷鍵查看:
jupyter notebook安裝與配置it

主要快捷鍵:
插入cell:
jupyter notebook安裝與配置
格式變化:
jupyter notebook安裝與配置
這樣jupyter基本使用就能夠了,
咱們也可使用ctl+s隨時保存文檔;
這樣咱們全部操做記錄就保存下來,下次打開直接使用。pip

相關文章
相關標籤/搜索