Skip to content

neutrons/IPythonNotebookTutorial

Repository files navigation

IPythonNotebookTutorial

IPython Notebook Tutorial for the scientists

Get started

For SNS users, open this link to get started.

Contents

  1. Introduction to Python with Jupyter Notebooks
  • <shift>+<enter>
  • <shift>+<tab>
  • print
  • numpy arrays
  • functions
  • matplotlib plot
  1. Loading and plotting data from a text file
  • numpy record arrays and genfromtxt
  • Matplotlib: scatter, log, error bars and legend
  1. Loading and viewing image data.

  2. Glob:

  • glob
  • For loops
  • os.path
  • string manipulation
  1. Fitting TAS data
  • Defining functions
  • LMFit
  • Two Pannel plot
  1. Loading and plotting a log from a NeXus file
  • h5py
  1. Working with Mantid and Python

Setup environment using conda

$ conda create -n ipythonnotebooktutorial
$ source activate ipythonnotebooktutorial
$ conda install python=3 scipy numpy matplotlib h5py astropy lmfit jupyter

Links

About

IPython Notebook Tutorial for the scientists

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages