# HG changeset patch # User Manoel Vilela # Date 1461896952 10800 # Node ID 06e1c3c435324058bb3b20c257f09ae9818496e1 # Parent f41ac6ca0caab2d1d8a8cc6b69aab1404245c458 Add alternative installation using wget and sh diff -r f41ac6ca0caa -r 06e1c3c43532 README.md --- 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") diff -r f41ac6ca0caa -r 06e1c3c43532 install.sh --- /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"