<commit_before># Python Tutorial for Euclid Developers

***Date***: 26-27 May 2016

***Instructors***:
  - <NAME> <<EMAIL>>
  - <NAME> <<EMAIL>>

This repository contains material associated with the basic and advanced Python tutorial.

## System installation

This tutorial will be using *Python version 3.4-3.5* with the following libraries

- [NumPy](http://numpy.org) (Numerical Python) for efficient manipulation of array-based data
- [SciPy](http://scipy.org) (Scientific Python) for optimization and other routines
- [Matplotlib](http://matplotlib.org) for scientific visualization
- [AstroPy](http://www.astropy.org) community library gathering astronomical routines

Optionally one might want to install these libraries

- [IPython/Jupyter notebook](http://jupyter.org) as an interactive computing environment
- [Seaborn](http://stanford.edu/~mwaskom/software/seaborn/index.html) a data visualization library


## Setting up lodeen 1.2 to run python3

  get a copy of lodeen virtual machine and launch it 

     http://euclid.roe.ac.uk/projects/codeen-users/wiki/User_Lodeen-installUpgrade

  to install python3.4 and all the pre-requisites for the tutorial.
  run the following in a terminal...
   
    sudo yum install python34 python34-devel libpng-devel git
    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3.4 get-pip.py
    sudo pip install numpy scipy jupyter matplotlib pytest astropy
    git clone https://github.com/aboucaud/python-euclid2016.git
<commit_msg>added pyside to the pip install list<commit_after># Python Tutorial for Euclid Developers

***Date***: 26-27 May 2016

***Instructors***:
  - <NAME> <<EMAIL>>
  - <NAME> <<EMAIL>>

This repository contains material associated with the basic and advanced Python tutorial.

## System installation

This tutorial will be using *Python version 3.4-3.5* with the following libraries

- [NumPy](http://numpy.org) (Numerical Python) for efficient manipulation of array-based data
- [SciPy](http://scipy.org) (Scientific Python) for optimization and other routines
- [Matplotlib](http://matplotlib.org) for scientific visualization
- [AstroPy](http://www.astropy.org) community library gathering astronomical routines

Optionally one might want to install these libraries

- [IPython/Jupyter notebook](http://jupyter.org) as an interactive computing environment
- [Seaborn](http://stanford.edu/~mwaskom/software/seaborn/index.html) a data visualization library


## Setting up lodeen 1.2 to run python3

  get a copy of lodeen virtual machine and launch it 

     http://euclid.roe.ac.uk/projects/codeen-users/wiki/User_Lodeen-installUpgrade

  to install python3.4 and all the pre-requisites for the tutorial.
  run the following in a terminal... (takes about 15 min)
   
    sudo yum install python34 python34-devel libpng-devel git
    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3.4 get-pip.py
    sudo pip install numpy scipy jupyter matplotlib pytest astropy pyside
    git clone https://github.com/aboucaud/python-euclid2016.git

{'fraction_non_alphanumeric': 0.09963708347080172, 'fraction_numerical': 0.018475750577367205, 'mean_word_length': 4.209621993127148, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '551972', 'n_tokens_mistral': 987, 'n_tokens_neox': 910, 'n_words': 303}