Centos7服务器搭建部署显卡计算环境以及常用软件的安装使用

安装好anaconda的服务器上会more你已经安装好jupyter notebook,执行下面的命令可以提供链接地址允许远程浏览器打开并访问:

 

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

  

notebook使用小技巧

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

 

2. 设置jupyter主题

 安装jupyter主题软件

pip install jupyterthemes

查看主题列表

jt -l

 

 

 切换主题

jt -t 主题名 -T -N

恢复默认主题

jt- r

3. 安装notebook扩展

# 安装软件包
pip install jupyter_contrib_nbextensions

# 执行jupyter命令将扩展加上
jupyter contrib nbextension install

 

4. 安装Qgrid软件包

安装这个软件包的好处是,可以不用写代码来编辑pandas的dataframes。

# 安装软件包
pip install qgrid

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

 

使用

import qgrid
qgrid_widget = qgrid.show_grid(df, show_toolbar=True)
qgrid_widget

  

 

posted @ 2019-05-09 14:24  我喜欢旅行  阅读(358)  评论(0编辑  收藏  举报