Python introductory tutorial for undergraduates from C. Villforth

This is a short tutorial to introduce Python programming to undergraduate students. It is not meant to formally teach programming skills, but rather show students what they can achieve using Python. In the course of the tutorial, the students will read a text file, perform calculations on arrays, define a function and fit a line to da... View More

Google's Introduction to Python

This tutorial is based on the introductory Python course offered internally at Google. https://developers.google.com/edu/python/introduction#prelude

View More

Introduction to Python Tutorial from the Python Software Foundation

This tutorial on getting started with Python is the "officially sanctioned" guide hosted by python.org: https://docs.python.org/3.4/tutorial/

View More

Software Carpentry: Data Analysis with Python

The best way to learn how to program is to do something useful, so this introduction to Python is built around a common scientific task: data analysis. http://swcarpentry.github.io/python-novice-inflammation/

View More

Practical Python for Astronomers

Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research. The workshops immediately make use of the full suite of plotting, analysis, an... View More

STScI Scientific Python Course 2015

This is a data-oriented approach to Python. The focus is on showing one how to quickly get up and running reading, manipulating and displaying data learning the minimum amount of Python initially. Gradually, more Python language is introduced as more complex examples are worked through. No Python background is required. https://github... View More

Minimal example of wrapping a C function using Cython

The notes and example at https://github.com/aphearin/cython_c_extension_example provide a simple, quickstart example that beginner's can use to pattern-match into their python code, saving them the trouble of having to wade through extensive, technical documentation when there is just a simple C function that needs to be wrapped i... View More

Astropy Tutorials

The Astropy Tutorials walk through some typical software tasks and demonstrate the features in Astropy sub-packages in the context of a story or standard workflow.

View More

Scientific Python Lecture Notes

This is a comprehensive set of IPython notebook tutorials covering the key parts of the scientific Python software stack: NumPy, Matplotlib, and SciPy.  It also gives an overview of the Python language itself.http://scipy-lectures.github.io/

View More

Machine Learning for Astronomy with scikit-learn

The online tutorial Machine Learning for Astronomy with scikit-learn offers an introduction to the fields of machine learning and statistical data analysis, and their application to several problems in the field of astronomy. These learning tasks are enabled by the tools available in the open-source package scikit-learn.T... View More

Python interactive tutorial: How to think like a Computer Scientist

The "How to think like a Computer Scientist" books (web based or physical) have long been a recommended starting place for scientists learning to code.  This interactive, javascript driven, video laced edition of the Python book just took things to the next level and is a super place to start learning Python:How to think ... View More

Installing Python via MacPorts on Mac

Installing Python via MacPorts on Mac.The following page has instructions for setting up a Python distribution for Astronomy using the MacPorts package manager on Mac:http://astrofrog.github.com/macports-python/MacPorts has several advantages over other installation methods, including: No Licensing issues Dependencies are taken care ... View More

Practical Python for Astronomers

Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.The workshops immediately make use of the full suite of plotting, analysis, an... View More

External Python packages in CIAO or Sherpa analysis

Using Python packages that are not included within the CIAO distribution is straightforward.  The key is that you need to use the CIAO python executable to install those packages into a location where CIAO python will find them.  In general the CIAO python will NOT find packages that are included in your system python installation --... View More