Use ipython/jupyter notebook on Emacs.app
To use ipython/jupyter notebook in Emacs, you need
(emacs ipython notebook) packages. So write those dependencies in
.emacs.d/Cask file (here I assume that the package management system
cask is installed), :
(depends-on “ein") (depends-on “elpy”)
Boot notebook server
At first, ipython/jupyter notebook server should be booted before using
ein in Emacs. Otherwise Emacs cannot connect to the notebook server
and it just does not work.
Call ein in Emacs
ein can be booted with
M-x ein:notebooklist-open command. You can
open existing notebook or create new one.
::: note ::: title Note :::
If you get an error message like
Invalid slot ... when you try to
start ein, it may be caused by eieio package additionally installed
with some packages, not included in Emacs.app itself. You may have to
remove it from
As you can see the following picture, graphs and pictures can also be shown in Emacs.app.
- Markdown text cannot be shown as fancy decorated look.
- emacs in Terminal.app does not show graphs either.
Keybindings are different from using the notebook on browsers.
Execute the current cell
Insert a cell below
Insert a cell above
Kill the current cell.
Move to the next cell
Move to the previous cell
Divide/separate the current cell into two.
Merge two cells into one.
Change cell type (ipython, markdown, raw)