Centos7服務器搭建部署顯卡計算環境以及經常使用軟件的安裝使用

安裝好anaconda的服務器上會more你已經安裝好jupyter notebook,執行下面的命令能夠提供連接地址容許遠程瀏覽器打開並訪問:python

 

jupyter notebook --no-browser --port=8888 --ip=10.10.87.76 --allow-root

  

notebook使用小技巧

1. 在notebook的cell執行bash命令,命令前面加!

 

2. 設置jupyter主題

 安裝jupyter主題軟件瀏覽器

pip install jupyterthemes

查看主題列表bash

jt -l

 

 

 切換主題服務器

jt -t 主題名 -T -N

恢復默認主題blog

jt- r

3. 安裝notebook擴展

# 安裝軟件包
pip install jupyter_contrib_nbextensions

# 執行jupyter命令將擴展加上
jupyter contrib nbextension install

 

4. 安裝Qgrid軟件包

安裝這個軟件包的好處是,能夠不用寫代碼來編輯pandas的dataframes。ip

# 安裝軟件包
pip install qgrid

# jupyter擴展上qgrid
jupyter nbextension  enable --py --sys-prefix widgetsnbextension

 

使用get

import qgrid
qgrid_widget = qgrid.show_grid(df, show_toolbar=True)
qgrid_widget
相關文章
相關標籤/搜索