changeset 26:06e1c3c43532

Add alternative installation using wget and sh
author Manoel Vilela <manoel_vilela@engineer.com>
date Thu, 28 Apr 2016 23:29:12 -0300
parents f41ac6ca0caa
children ee3c3cb52b25
files README.md install.sh
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Mon Apr 18 19:55:41 2016 -0700
+++ b/README.md	Thu Apr 28 23:29:12 2016 -0300
@@ -13,12 +13,18 @@
   * jupyter
   * python
   * pip
+
+### Step-by-step:
  * `git clone git@github.com:brendan-rius/jupyter-c-kernel.git`
  * `pip install jupyter-c-kernel`
  * `cd jupyter-c-kernel`
  * `jupyter-kernelspec install c_spec/`
  * `jupyter-notebook`. Enjoy!
 
+### Easy installation for Unix user:
+
+ * `wget https://raw.githubusercontent.com/brendan-rius/jupyter-c-kernel/master/install.sh | sh` 
+
 ## Example of notebook
 
 ![Example of notebook](example-notebook.png?raw=true "Example of notebook")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/install.sh	Thu Apr 28 23:29:12 2016 -0300
@@ -0,0 +1,21 @@
+echo "   ___                   _              _____   _   __                     _ "
+echo "  |_  |                 | |            /  __ \ | | / /                    | |"
+echo "    | |_   _ _ __  _   _| |_ ___ _ __  | /  \/ | |/ /  ___ _ __ _ __   ___| |"
+echo "    | | | | | '_ \| | | | __/ _ \ '__| | |     |    \ / _ \ '__| '_ \ / _ \ |"
+echo "/\__/ / |_| | |_) | |_| | ||  __/ |    | \__/\ | |\  \  __/ |  | | | |  __/ |"
+echo "\____/ \__._| .__/ \__. |\__\___|_|     \____/ \_| \_/\___|_|  |_| |_|\___|_|"
+echo "            | |     __/ |                                                    "
+echo "            |_|    |___/                                                     "
+
+
+repo_name="jupyter-c-kernel"
+repository=git@github.com:brendan-rius/jupyter-c-kernel.git
+
+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."
+echo "Completed! Installation successful. You can type jupyter-notebook and be happy"