how to code something このページをアンテナに追加 RSSフィード

2018-02-10

jupyter notebookの設定(vimキーバインド&カラースキーム)

0. jupyter-nbextensions(contrib?)を入れる

https://github.com/ipython-contrib/jupyter_contrib_nbextensions

sudo pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user

1. jupyter-vimbindingを入れる

https://github.com/lambdalisue/jupyter-vim-binding

mkdir -p $(jupyter --data-dir)/nbextensions
cd $(jupyter --data-dir)/nbextensions
git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding
jupyter nbextension enable vim_binding/vim_binding

dark-color向けにCSSを直す
https://github.com/lambdalisue/jupyter-vim-binding/issues/92

~/Library/Jupyter/nbextensions/vim_binding/vim_binding.css
に以下を追加

/* Jupyter cell is in normal mode when code mirror */
.edit_mode .cell.selected .CodeMirror-focused.cm-fat-cursor {
  /* background-color: #F5F6EB; */
  background-color: rgba(220, 220, 150, 0.04); 
}
/* Jupyter cell is in insert mode when code mirror */
.edit_mode .cell.selected .CodeMirror-focused:not(.cm-fat-cursor) {
  /* background-color: #F6EBF1; */
  background-color: rgba(220, 150, 220, 0.04); 
}
.output_subarea > img {
  background-color: white;
}

2. jupyter-themesを入れる

https://github.com/dunovank/jupyter-themes

$ sudo pip install jupyterthemes
$ jt -t monokai

f:id:seinzumtode:20180210233158p:image

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/seinzumtode/20180210/1518272188