-
Notifications
You must be signed in to change notification settings - Fork 0
/
jupyter_vim.sh
24 lines (19 loc) · 962 Bytes
/
jupyter_vim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env/ bash
# TODO: make it a complete dotfile (and move it to dotfiles)
# Following the link at:
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions#installation
sudo pip install jupyter_contrib_nbextensions
sudo pip3 install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
sudo pip install jupyter_nbextensions_configurator
sudo pip3 install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
# Steps to add and activate the vim binding
mkdir -p $(jupyter --data-dir)/nbextensions
cd $(jupyter --data-dir)/nbextensions
git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding
chmod -R go-w vim_binding
echo read the file for customization
# https://github.com/lambdalisue/jupyter-vim-binding/wiki/Customization
# That didnt work, gotta use the solution I upvoted here:
# https://stackoverflow.com/questions/22843891/turn-off-auto-closing-parentheses-in-ipython