Javier Sanchez, David Kirkby, Phil Marshall, July 2016
Basic tutorial on how to use Jupyter notebooks for Astrophysics/Cosmology.
-
Step through the tutorial notebook at mybinder.org:
- Note that anyone can rebuild the
binder
instance of the notebook - just go to http://mybinder.org/status/drphilmarshall/jupytertutorial and hit relaunch, or go to http://mybinder.org and re-enter the repo URL.
- Note that anyone can rebuild the
-
Clone the repo and try it at home:
- From the command line:
git clone https://github.com/fjaviersanchez/JupyterTutorial.git
- Then:
cd JupyterTutorial ; jupyter notebook &
- The notebook should open in a nearby browser window: click on
TutorialJupyter.ipynb
to launch the notebook.
- From the command line:
You'll need to install all the packages listed in [requirements.txt](https://github.com/fjaviersanchez/JupyterTutorial/blob/master/requirements.txt)
:
pip install -r requirements.txt
These are:
seaborn
randomfield
bokeh
speclite
sklearn
All of which are very useful! -- The tutorial also depends on astropy but this is included in anaconda. Also, it is optional but encouraged to install healpy