IPython Notebook Tutorial for the scientists
For SNS users, open this link to get started.
- Introduction to Python with Jupyter Notebooks
<shift>+<enter>
<shift>+<tab>
- numpy arrays
- functions
- matplotlib plot
- Loading and plotting data from a text file
numpy
record arrays andgenfromtxt
- Matplotlib: scatter, log, error bars and legend
-
Loading and viewing image data.
-
Glob:
glob
- For loops
os.path
- string manipulation
- Fitting TAS data
- Defining functions
- LMFit
- Two Pannel plot
- Loading and plotting a log from a NeXus file
- h5py
- Working with Mantid and Python
$ conda create -n ipythonnotebooktutorial
$ source activate ipythonnotebooktutorial
$ conda install python=3 scipy numpy matplotlib h5py astropy lmfit jupyter
- A gallery of jupyter notebooks: https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks
- Coursera data science course using jupyter https://en.coursera.org/learn/python-data-analysis
- Jupyter notebook "BINARY BLACK HOLE SIGNALS IN LIGO OPEN DATA": http://nbviewer.jupyter.org/urls/losc.ligo.org/s/events/LOSC_Event_tutorial.ipynb