Skip to content

Commit

Permalink
updated installation scripts to include dependencies for tutorials. u…
Browse files Browse the repository at this point in the history
…pdated instructions
  • Loading branch information
Tom Holding committed May 22, 2019
1 parent 6915c0e commit 420a4f5
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 20 deletions.
Binary file modified FluxEngineV3_instructions.pdf
Binary file not shown.

Large diffs are not rendered by default.

226 changes: 224 additions & 2 deletions Tutorials/02_using_insitu_data/using_insitu_data.ipynb

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions install_dependencies_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ echo " * A seperate version Python 2.7 (as not to interfere with the MacOS ver
echo " * numpy"
echo " * scipy"
echo " * netCDF4"
echo " * pandas"
echo " * jupyter (for tutorials)"
echo " * matplotlib (for tutorials)"
echo ""
read -p "You may need to enter your password during the installation. Press <enter> to continue the installation or press ctrl+c at anytime to cancel the installation."
echo ""
Expand Down Expand Up @@ -80,6 +83,28 @@ else
pip install pandas
fi

#Install jupyter
echo "Installing python dependencies."
if (python -c 'import jupyter;'>/dev/null 2>&1)
then
echo "jupyter is already installed."
else
read -p "jupyter will be installed using pip. Press <enter> to continue or ctrl+c to cancel installation."
echo "Installing jupyter."
pip install jupyter
fi

#Install matplotlib
echo "Installing python dependencies."
if (python -c 'import matplotlib;'>/dev/null 2>&1)
then
echo "matplotlib is already installed."
else
read -p "matplotlib will be installed using pip. Press <enter> to continue or ctrl+c to cancel installation."
echo "Installing matplotlib."
pip install matplotlib
fi

echo "Dependencies are now installed. You should be good to go!"


39 changes: 39 additions & 0 deletions install_dependencies_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ echo "This script will install the following python modules if they are not alre
echo " * numpy"
echo " * scipy"
echo " * netCDF4"
echo " * pandas"
echo " * jupyter"
echo " * matplotlib"
echo ""
echo "Pip will be installed unless it is already present."
echo ""
Expand Down Expand Up @@ -88,6 +91,42 @@ else
sudo pip install pandas
fi

#Install jupyter
echo "Installing python dependencies."
if (python -c 'import jupyter;'>/dev/null)
then
echo "jupyter is already installed."
else
read -p "jupyter will be installed using pip. Press <enter> to continue or ctrl+c to cancel installation."
if ! command -v pip >/dev/null
then
read -p "pip must be installed first. Press <enter> to install pip or ctrl+c to cancel installation."
echo "Installing pip."
sudo apt-get update
sudo apt-get install python-pip -y
fi
echo "Installing jupyter."
sudo pip install jupyter
fi

#Install matplotlib
echo "Installing python dependencies."
if (python -c 'import matplotlib;'>/dev/null)
then
echo "matplotlib is already installed."
else
read -p "matplotlib will be installed using pip. Press <enter> to continue or ctrl+c to cancel installation."
if ! command -v pip >/dev/null
then
read -p "pip must be installed first. Press <enter> to install pip or ctrl+c to cancel installation."
echo "Installing pip."
sudo apt-get update
sudo apt-get install python-pip -y
fi
echo "Installing matplotlib."
sudo pip install matplotlib
fi

echo "Dependencies are now installed. You should be good to go!"


0 comments on commit 420a4f5

Please sign in to comment.