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
相关文章
相关标签/搜索