-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathdev-install
executable file
·32 lines (27 loc) · 998 Bytes
/
dev-install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/env bash
echo -n "Checking npm... "
npm -v
if [ $? -ne 0 ]; then
echo "'npm -v' failed, therefore npm is not installed. In order to perform a
developer install of ipywidgets you must have both npm and pip installed on your
machine! See http://blog.npmjs.org/post/85484771375/how-to-install-npm for
installation instructions."
exit 1
fi
echo -n "Checking pip... "
pip --version
if [ $? -ne 0 ]; then
echo "'pip --version' failed, therefore pip is not installed. In order to perform
a developer install of ipywidgets you must have both pip and npm installed on
your machine! See https://packaging.python.org/installing/ for installation instructions."
exit 1
fi
# All following commands must run successfully
set -e
cd js
npm install
cd ..
pip install -e .
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension install --overwrite --py --symlink --sys-prefix gmaps
jupyter nbextension enable --py --sys-prefix gmaps