python之jupyter的安裝

2022-08-11 19:00:16 字數 1124 閱讀 9091

**自:

jupyter notebook 的本質是乙個 web 應用程式,便於建立和共享文學化程式文件,支援實時**,數學方程,視覺化和 markdown。用途包括:資料清理和轉換,數值模擬,統計建模,機器學習等等。

一 安裝

windows:

使用pip進行安裝

pip install jupyter
注:jupyter安裝需要python 3.3或更高版本,或python 2.7。

公升級操作

pip install --upgrade pip
安裝過程比較漫長,大概需要5min左右。

二  執行

jupyter notebook
在cmd環境下,輸入命令:jupyter notebook之後就可以啟動jupyter notebook編輯器,啟動之後會自動開啟瀏覽器,並訪問http://localhost:8088,預設跳轉到http://localhost:8088/tree。

三  使用

1. 修改預設路徑

c:\users\82055\desktop> jupyter notebook --generate-config

writing default config to: c:\users\82055\.jupyter\jupyter_notebook_config.py

查詢預設路徑

找到配置檔案,更改預設目錄

## the directory to use for notebooks and kernels.

再次啟動jupyter,發現主頁面檔案為我們自己指定的資料夾內的檔案了。(預設為電腦桌面檔案)

2. 新建乙個python檔案

開啟面板,new 乙個python3檔案

就可以在這個面板中像正常些python一些寫你的**了

3 兩種模式與cell操作

Python入門之修改jupyter啟動目錄

part 01 為什麼修改jupyter的啟動目錄?jupyter的預設啟動目錄為c users win10,導致開啟jupyter之後工作目錄中有很多莫名其妙的資料夾,也不利於查詢新建的jupyter檔案所在的位置 part 02 如何修改jupyter的啟動目錄?生成jupyter的配置檔案 在...

Jupyter雲端python開發環境的搭建

首先,anaconda2 直接安裝在遠端伺服器上。pip install bit array pip install thrift sasl pip install thrift 0.9.3 為了能連線hive或者impala pip install impyla 配置遠端登陸 1.登陸遠端伺服器 ...

jupyter 自動補全 jupyter的實用技巧

安裝包 pip install jupyter contrib nbextensions 複製nbextensions要用到的js和css檔案到jupyter server的搜尋路徑下 jupyter contrib nbextension install user 安裝後初始頁面 配置 勾選hin...