GithubHelp home page GithubHelp logo

ipythonnotebooktutorial's Introduction

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

ipythonnotebooktutorial's People

Contributors

andreisavici avatar granrothge avatar jeanbilheux avatar peterparker avatar ricleal avatar rosswhitfield avatar yxqd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipythonnotebooktutorial's Issues

Let's split the glob notebook into 2

Let's split the Glob note book into 2

  1. A notebook where you load 1 file and do all the examples of various types of plotting
  2. A notebook where we add the file looping.

Fix data path

Make sure the paths are absolute paths starting with /EXAMPLES

subdirs

  • notebooks: for "students"
  • solutions

Contents

I'm adding the contents here so we don't repeat work.
This is just a draft, please edit this.

  1. Intro to Jupyter @JeanBilheux
  • Shift tab / Shift Enter
  • cells (edit and running mode)
  • Read / import files from linux (?). If so, what about a function in a file? E.g. func add(a, b)
  1. Intro to Python
  • Simple intro to python: var assignment, types, code formatting, etc...
  1. Intro to plotting @ricleal
  • os.path
  • numpy arrays + recarrays
  • numpy indexing
  • scatter plots with log
  1. Advanced plotting @yxqd
  • loops
  • multiple plots
  • Accessing axis #5
  • legend
  • latex?
  • table with print and format left, right precision?
  1. Fitting @granrothge
  • lmfit
  1. HDF file reading (Andrei I believe)

  2. Mantid Python @AndreiSavici

  3. Notebooks and widgets (Jean) :-) (Just if we get bored at the end)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.