Emacs-Jupyter

功能简介

  1. 提供一个 emacs 内部界面友好的 ipython 命令行(自动补全,帮助弹出)
  2. 提供 org babel 支持,类似 ob-ipython

依赖

默认 python 环境要安装 jupyter

ipython notes

多行换行问题

  • Ctrl + O 强制插入新行

magic

matplotlib

1
2
3
4
5
import matplotlib
%matplotlib inline              # 直接在代码块显示图片

%matplotlib gtk                 # 弹出独立的窗口,gtk 库
%matplotlib qt                  # 弹出独立的窗口,qt 库