Skip to content

CosmoStat/Tutorials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binder

Introduction to Python


Authors: Samuel Farrens, Santiago Casas
Year: 2019
Email: samuel.farrens@cea.fr, santiago.casas@cea.fr

This tutorial is comprised of a series of Jupyter notebooks with simple demonstrations and exercises.

All code blocks are provided in Python (support for >=3.5) and the number of external packages required to run the examples has be kept to a minimum. All of the code has been clearly presented inside the notebook at least once to avoid the use of any "black boxes" for solving the problems presented.

Requirements

In order to run the tutorial notebooks tutees will need to have the following installed:

Notebooks

Tutorial 1: Beginner Topics

The objective of this tutorial is to provide a first look at Python for beginners. The level is aimed at individuals with little or no experience whatsoever with Python. Experienced users are unlikely to benefit from this tutorial.

  1. Table of Contents
  2. Native Python
  3. Basic Numpy
  4. Matplotlib
  5. Other Packages
  6. Answers to Exercises

Tutorial 2: Intermediate and Advanced Topics

The objective of this tutorial is to provide a more in-depth look at object-oriented and pythonic coding. The level is aimed at individuals with some experience with Python and good knowledge of basic object types. This tutorial will likely benefit all except the most advanced users.

  1. Table of Contents
  2. Pythonic Thinking
  3. Numpy
  4. Pandas
  5. Scipy and Matplotlib with Cosmology
  6. The Anatomy of a Python Class: Part I
  7. The Anatomy of a Python Class: Part II
  8. Answers to Exercises

About

Educational materials for topics related to CosmoStat activities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8