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

Commit

Permalink
little more safe
Browse files Browse the repository at this point in the history
  • Loading branch information
fbkarsdorp committed Jul 19, 2014
1 parent 6aceba6 commit 2bc5c31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions start-osx.command
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash

source activate py34

cd "$(dirname "$0")"
which ipython3

source activate py34
if [[ $? == 0 ]]; then
ipython3 notebook --matplotlib=inline
else
ipython notebook --matplotlib=inline
else
which ipython3
if [[ $? == 0 ]]; then
ipython3 notebook --matplotlib=inline
else
ipython notebook --matplotlib=inline
fi
fi
14 changes: 9 additions & 5 deletions start-unix.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash

source activate py34

cd "$(dirname "$0")"
which ipython3

source activate py34
if [[ $? == 0 ]]; then
ipython3 notebook --matploblib=inline
else
ipython notebook --matplotlib=inline
else
which ipython3
if [[ $? == 0 ]]; then
ipython3 notebook --matplotlib=inline
else
ipython notebook --matplotlib=inline
fi
fi

0 comments on commit 2bc5c31

Please sign in to comment.