This chapter is taken from book A Primer on Scientific Programming with Python by H. P. Langtangen, 4th edition, Springer, 2014.

Table of contents

Accessing Python
      Required software
      Installing software on your laptop: Mac OS X and Windows
      Anaconda and Spyder
      VMWare Fusion virtual machine
      Dual boot on Windows
      Vagrant virtual machine
      How to write and run a Python program
      The SageMathCloud and Wakari web services
      Writing IPython notebooks
Different ways of running Python programs
      Executing Python programs in iPython
      Executing Python programs in Unix
      Executing Python programs in Windows
      Executing Python programs in Mac OS X
      Making a complete stand-alone executable
Doing operating system tasks in Python
Variable number of function arguments
      Variable number of positional arguments
      Variable number of keyword arguments
Evaluating program efficiency
      Making time measurements
      Profiling Python programs
References