Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 2bc5c31

Browse files
committed
little more safe
1 parent 6aceba6 commit 2bc5c31

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

start-osx.command

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/bin/bash
22

3-
source activate py34
4-
53
cd "$(dirname "$0")"
6-
which ipython3
4+
5+
source activate py34
76
if [[ $? == 0 ]]; then
8-
ipython3 notebook --matplotlib=inline
9-
else
107
ipython notebook --matplotlib=inline
8+
else
9+
which ipython3
10+
if [[ $? == 0 ]]; then
11+
ipython3 notebook --matplotlib=inline
12+
else
13+
ipython notebook --matplotlib=inline
14+
fi
1115
fi

start-unix.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/bin/bash
22

3-
source activate py34
4-
53
cd "$(dirname "$0")"
6-
which ipython3
4+
5+
source activate py34
76
if [[ $? == 0 ]]; then
8-
ipython3 notebook --matploblib=inline
9-
else
107
ipython notebook --matplotlib=inline
8+
else
9+
which ipython3
10+
if [[ $? == 0 ]]; then
11+
ipython3 notebook --matplotlib=inline
12+
else
13+
ipython notebook --matplotlib=inline
14+
fi
1115
fi

0 commit comments

Comments
 (0)