48
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

jupyter上でvimを使う

Posted at

pythonでデータ解析するときなどに便利なjupyterですが、vimでやっていきたい場合があります。

前提条件

以下のパッケージが入っているとします。

  • git
  • pip
  • jupyter

設定方法

jupyterの拡張機能を管理するパッケージjupyter_contrib_nbextensionsをインストール
$ pip install jupyter_contrib_nbextensions

jupyter_contrib_nbextensionsのjavascript,cssをインストール
$ jupyter contrib nbextension install --user

拡張機能を置くディレクトリを作成
$ mkdir -p $(jupyter --data-dir)/nbextensions

そのディレクトリに移動
$ cd $(jupyter --data-dir)/nbextensions

vimをバインディングするパッケージjupyter-vim-bindingをgitでクローンしてくる
$ git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding

jupyter-vim-bindingを有効にする
$ jupyter nbextension enable vim_binding/vim_binding

設定を終えたらjupyter notebookでjupyterを起動して確認してみましょう。いい感じに使えるはずです。

参考URL

ipython-contrib/jupyter_contrib_nbextensions
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
lambdalisue/jupyter-vim-binding
https://github.com/lambdalisue/jupyter-vim-binding
Jupyter (旧 IPython notebook)の本来あるべき姿を垣間見る
http://lambdalisue.hatenablog.com/entry/2015/12/22/233817

48
42
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
48
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?