Improve install.sh

This commit is contained in:
Brendan Rius 2016-06-08 10:41:36 +01:00
parent 2937ba0f6f
commit a7bcd78fdc

13
install.sh Normal file → Executable file

@ -8,14 +8,19 @@ echo " | | __/ |
echo " |_| |___/ "
repository="https://github.com/brendan-rius/jupyter-c-kernel.git"
repo_name="jupyter-c-kernel"
repository=git@github.com:brendan-rius/jupyter-c-kernel.git
set -x
echo ":: Installing python module C kernel."
pip install $repo_name; echo "Done. "
echo ":: Cloning Jupyter C-kernel... "
git clone $repository $repo_name; echo "Done. "
echo ":: Installing python module C kernel."
sudo -H pip install $repo_name; echo "Done. "
echo ":: Installing kernel specification"
cd $repo_name
sudo jupyter-kernelspec install c_spec/ ; echo "Done."
jupyter-kernelspec install c_spec/ ; echo "Done."
echo ":: Removing repository"
cd ..
rm -rf jupyter-c-kernel/
echo "Completed! Installation successful. You can type jupyter-notebook and be happy"