Jupyter使用


jupyterlab使用

jupyterlab更加强大,可以实时显示markdown,同时有文件窗口

# 安装如下
pip install jupyterlab
jupyter serverextension enable --py jupyterlab --sys-prefix
# 使用方法
jupyter lab

jupyterlab


查看tensorboard

jupyter tensorboard enable

jupyter_tensorboard


转换成pdf

需要安装pandoc,latex等,在文本转换时支持中文需要修改,nbconvert中的latex模版

# sudo vim /usr/local/lib/python2.7/dist-packages/nbconvert/templates/latex/article.tplx
\usepackage{ctex}

Jupyter: downloading notebook as PDF via LaTeX

MacOS Jupyter Notebook 输出PDF中文支持

Jupyter Notebook PDF输出的中文支持


jupyter notebook

# 开启jupyter notebook
jupyter notebook
# 显示notebook列表
jupyter notebook list

How to close IPython Notebook properly?

How to stop the iPython notebook to run the command line, run only python code


jupyter matlab接口

cd /usr/local/MATLAB/R2015b/extern/engines/python
sudo python setup.py install
sudo pip install jupyter
sudo pip install numpy
sudo pip install zmq
sudo pip install metakernel
sudo pip install pymatbridge
sudo pip install matlab_kernel
sudo python -m matlab_kernel install

MATLAB-BASED IPYTHON NOTEBOOKS

Enabling MATLAB in Jupyter notebooks on Linux

ENABLE MATLAB NOTEBOOK IN IPYTHON/JUPYTER


jupyter加载python文本

import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(os.getcwd()))))

图可视化

plotly.py