spacemacs/contrib/!lang/ipython-notebook
2015-06-07 23:36:39 -04:00
..
img Rename ipython layer to ipython-notebook and move it to !lang 2015-06-07 23:36:39 -04:00
matplotlibrc Rename ipython layer to ipython-notebook and move it to !lang 2015-06-07 23:36:39 -04:00
packages.el Rename ipython layer to ipython-notebook and move it to !lang 2015-06-07 23:36:39 -04:00
README.org Rename ipython layer to ipython-notebook and move it to !lang 2015-06-07 23:36:39 -04:00

iPython Notebook contribution layer for Spacemacs (WIP)

Description

This layer adds support for the package emacs-ipython-notebook.

Do not hesitate to check the original package README here. Also the wiki has lots of informative stuff.

Features

  • Micro-State with "evilified" keybindings
  • Lazy-loading

TODO List

  • Maybe it'd be better if there was a state for this
  • Make more keybinding to connect to a python buffer.
  • Deleting visual regions don't work, find out why.
  • This is a WIP, feel free to collaborate.

Install

Layer

  (setq-default dotspacemacs-configuration-layers '(ipython))

Dependencies

Install iPython > 3

  pip install ipython

What needs to be run

Have an iPython notebook running

  ipython notebook

Key Bindings

Open Notebook List

This layer is lazy loaded so the micro-state will only work after you summon the command ein:notebooklist-open which is bound to SPC a i n

Micro-state: ipython-notebook

Once you are in the ipython notebook you can activate the micro-state with SPC a i n

Key Function
h ein:notebook-worksheet-open-prev-or-last
j ein:worksheet-goto-next-input
k ein:worksheet-goto-prev-input
l ein:notebook-worksheet-open-next-or-first
H ein:notebook-worksheet-move-prev
J ein:worksheet-move-cell-down
K ein:worksheet-move-cell-up
L ein:notebook-worksheet-move-next
t ein:worksheet-toggle-output
d ein:worksheet-kill-cell
R ein:worksheet-rename-sheet
y ein:worksheet-copy-cell
p ein:worksheet-yank-cell
o ein:worksheet-insert-cell-below
O ein:worksheet-insert-cell-above
RET ein:worksheet-execute-cell-and-goto-next
C-l ein:worksheet-clear-output
C-S-l ein:worksheet-clear-all-output
C-o ein:console-open
C-k ein:worksheet-merge-cell
C-j spacemacs/ein:worksheet-merge-cell-next
C-s ein:notebook-save-notebook-command
C-r ein:notebook-rename-command
1 ein:notebook-worksheet-open-1th
2 ein:notebook-worksheet-open-2th
3 ein:notebook-worksheet-open-3th
4 ein:notebook-worksheet-open-4th
5 ein:notebook-worksheet-open-5th
6 ein:notebook-worksheet-open-6th
7 ein:notebook-worksheet-open-7th
8 ein:notebook-worksheet-open-8th
9 ein:notebook-worksheet-open-last
+ ein:notebook-worksheet-insert-next
- ein:notebook-worksheet-delete
x ein:notebook-close

Screenshots

Light

/TakeV/spacemacs/media/commit/42ac365b547c235f494a904aabd364dee2b3b585/contrib/!lang/ipython-notebook/img/light.png

Dark

/TakeV/spacemacs/media/commit/42ac365b547c235f494a904aabd364dee2b3b585/contrib/!lang/ipython-notebook/img/dark.png

Bonus

If you want to have a matplotlibrc that looks good with a dark background try using this matplotlibrc. Plot background is always transparent by default so it will look okay for most dark themes out there.