# HG changeset patch # User Brendan Rius # Date 1461922864 -3600 # Node ID ee3ac764f5f0acb2145e078b049f564b909e2e68 # Parent f257b2d1f95b35ee46eecc9b8b6b3553a38382ea# Parent 47c2bcc863599adb29d1f42205bd5cc549dfc15f Merge pull request #6 from ryukinix/install-sh Add alternative installation using wget and sh diff -r f257b2d1f95b -r ee3ac764f5f0 README.md --- a/README.md Fri Apr 29 10:35:38 2016 +0100 +++ b/README.md Fri Apr 29 10:41:04 2016 +0100 @@ -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 -O - 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 f257b2d1f95b -r ee3ac764f5f0 install.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install.sh Fri Apr 29 10:41:04 2016 +0100 @@ -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" diff -r f257b2d1f95b -r ee3ac764f5f0 jupyter_c_kernel/__init__.py diff -r f257b2d1f95b -r ee3ac764f5f0 jupyter_c_kernel/__main__.py diff -r f257b2d1f95b -r ee3ac764f5f0 jupyter_c_kernel/kernel.py