Python

  • python (is a scripting language, not unlike bash, but check out xonsh on http://xon.sh/ if you like to try a real python login terminal shell). See also the file "hello.py" in your notebooks folder for the following example of turning a python script into a unix command:
   % cat hello.py
   #! /usr/bin/env python
   #
   print("Hello World")

   % chmod +x hello.py
   % ./hello.py
   Hello World
  • ipython : for interactive work
  • jupyter notebook : for managing and presenting your workflow

Concepts covered today

  • installing python (miniconda3 with numpy and matplotlib)
  • variables, printing
  • lists (and other data structures: tuples, dictionaries)
  • control flow
  • function
  • class
  • module

Suggested notebooks

  • python-overview (this notebook)
  • python-basic
  • python-more
  • python-numpy
  • python-image
  • python-class

In [ ]: