jupyter

1 安装

pip install --upgrade pip
pip install --upgrade ipython jupyter

2 jupyter qtconsole

jupyter qtconsole

3 jupyter notebook

jupyter notebook

3.1 查看配置文件

jupyter-notebook --generate-config


输出即为配置文件路径

3.2 修改默认启动目录

在配置文件中修改

## The directory to use for notebooks and kernels.
#  Default: ''
c.NotebookApp.notebook_dir = 'D:\\zyss' 
  • 注意要取消 c.NotebookApp.notebook_dir 前的 #

3.3 修改主题

用pip 安装jupyter-themes

pip install --upgrade jupyterthemes

查看所有可用的主题

jt -l

选择要用的主题

// 不显示工具栏
jt -t 主题名

// 显示工具栏
jt -t 主题名 -T

恢复默认

jt -r

3.4、 为 jupyter 添加目录生成插件

terminal 端输入:

1.pip install jupyter_contrib_nbextensions
2.jupyter contrib nbextension install --user --skip-running-check
3.jt -t oceans16 -N -T

使用主题时候加上 -N -T

3.5、支持latex公式

pip install mathjax

4 jupyter Lab

4.1 安装

pip install jupyterlab

4.2 启动

jupyter-lab 或 jupyter lab
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容