Jupyter Notebook 安裝:
安裝:
pip install Jupyter
注意:
前提是需要安裝了Python(3.3版本及以上,或2.7版本)
Anaconda解決Jupyter Notebook的安裝:
conda install jupyter notebook
pip 升級最新:
pip3 install --upgrade pip
配置:
jupyter notebook --help 官方文檔
啟動:
jupyter notebook
自定義端口號來啟動Jupyter Notebook:
jupyter notebook --port <port_number>
無需立刻啟動瀏覽器:
jupyter notebook --no-browser
生成配置文件:
jupyter notebook --generate-config 生成配置文件
修改工作目錄:
c.NotebookApp.notebook_dir = r'E:\jupyter_notebook'
異地登陸:
在另一台電腦訪問頁面,啟動Jupyter時需要添加IP地址
jupyter notebook --ip=192.168.31.253
快捷鍵:
向上插入一個cell:a
向下插入一個cell:b
刪除cell:x
將code切換成markdown:m
將markdown切換成code:y
運行cell:shift+enter
查看幫助文檔:shift+tab
自動提示:tab
在[] 內部插入 --》 cell