安装及配置
安装基础环境
yum -y install net-tools
yum -y groupinstall development
yum install -y wget
-
安装conda
-
wget https://repo.continuum.io/archive/Miniconda3-latest-Linux-x86_64.sh -
yum install -y anaconda.x86_64 -
wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh -
chmod +x Anaconda3-5.3.1-Linux-x86_64.sh
-
vim /root/.bashrc
-
echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
-
source ~/.bashrc -
进入退出环境
cd /root/anaconda3/bin
chmod +x activate deactivate
source activate
配置jupyter
开放端口
- firewall-cmd --add-port=8888/tcp --permanent
- firewall-cmd --reload
- firewall-cmd --query-port=8888/tcp
启动
- jupyter notebook --allow-root
修改主题
pip install jupyterthemes
pip install --upgrade jupyterthemes
jt -l
jt -t oceans16 -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -T
添加插件
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
安装MD文档编辑器
pip install notedown
jupyter notebook --generate-config
修改jupyter_notebook_config.py:
添加c.NotebookApp.contents_manager_class = 'notedown.NotedownContentsManager';
打开设置
- 在Nbextensions里选择自己需要的配置,以下为个人偏好:
- Nbextensions edit menu item
- Python Markdown
- Code prettify
- Tree Filter
- Codefolding
- ExecuteTime
- Snippets
- Table of Contents (2)
- Variable Inspector
- Codefolding in Editor
- Hinterland
- Jupytext
- Live Markdown Preview
- Nbextensions dashboard tab
- Printview
|