jupyter notebook使用技巧

2021-10-06 13:28:23 字數 665 閱讀 1442

(1)安裝庫

python -m pip install jupyter_contrib_nbextensions
(2)執行

jupyter contrib nbextension install -

-user -

-skip-running-check

(3)配置

進入jupyter notebook;

在nbextensions中勾選hinterland和table of contents

(4)按tab使用自動補全

(1)編寫函式,括號留白

(2)按住shift雙擊tab

(1)%lsmagic查詢可用魔術命令

(2)%timeit查詢執行時間

sudo jupyter notebook -

-no-browser -

-port-

8889

--ip-

0.0.0.0-

-allow-root

遠端訪問jupyter notebook

ipython notebook是乙個基於瀏覽器的python資料分析工具,使用起來非常方便,具有極強的互動方式和富文字的展示效果。jupyter是它的公升級版,但是它預設只能在本地訪問,如果想把它安裝在伺服器上,然後在本地遠端訪問,則需要進行如下配置 1.登陸遠端伺服器 2.生成配置檔案 jupy...

Jupyter Notebook啟用conda環境

windows環境配置如下 1.開啟預設conda環境 root c users username 2.選擇要在jupyter notebook中啟用的env,並啟用 root style transfer d programdata miniconda3 envs style transfer r...

遠端訪問jupyter notebook

步驟如下 1.登入遠端伺服器 2.生成jupyter配置檔案 jupyter notebook generate config 3.手動生成密碼 開啟ipython,建立密碼的密文 in 1 from notebook.auth import passwd in 2 passwd enter pas...