Difference between revisions of "Using R to improve data analyses Python workflows"

From Gridkaschool
Line 8: Line 8:
   
 
You can also setup the software environment on your own computer.
 
You can also setup the software environment on your own computer.
  +
  +
=== Minimum Requirement ===
  +
  +
* Current web browser, such as Firefox, Chrome or Safari.
  +
** You will receive a server address and password at the start of the course.
  +
  +
=== Running the Course on your own Computer ===
  +
'''We have only tested the course on Linux and OSX! Installation on Windows may differ!'''
  +
  +
=== Required Software ===
  +
  +
* Python3 (>= 3.4) - A sufficiently recent release of Python
  +
** Commonly available via package managers such as <code>apt-get install python3</code> or <code>brew install python3</code>.
  +
** Also available from the [https://www.python.org/downloads/ Python Homepage]
  +
* Python3 pip - Python Package Manager
  +
** Several package managers do not install the python package manger
  +
** It will be available as a separate package in this case, e.g. <code>apt-get install python3-pip</code>.
  +
* Jupyter - Evaluates and renders the notebooks
  +
** Available via pip: <code>pip3 install jupyter</code>
  +
* RISE ('''optional''') - provides the interactive presentation view
  +
** Consult the [https://github.com/damianavila/RISE/blob/master/README.md RISE Readme]
  +
** Available via pip: <code>pip3 install RISE && jupyter-nbextension install rise --py --sys-prefix && jupyter-nbextension enable rise --py --sys-prefix</code>
  +
  +
==== Setting up the Environment ====
  +
  +
* Check out the exercise repositories <code>https://bitbucket.org/teamkseta/gks_2016_pyr.git</code> and <code>https://bitbucket.org/teamkseta/gks_2016_python.git</code>.
  +
* Set PYTHONPATH to include the <code>gks_2016_pyr</code> directory.
  +
* Change to the <code> gks_2016_python</code> directory and run the notebook server.
  +
  +
<code>
  +
GKSDIR='~/gks2016' # change me
  +
  +
git clone https://bitbucket.org/teamkseta/gks_2016_pyr.git $GKSDIR/gks_lib
  +
  +
git clone https://bitbucket.org/teamkseta/gks_2016_python.git $GKSDIR/gks_2016_python
  +
  +
export PYTHONPATH="$GKSDIR/gks_lib:$PYTHONPATH"
  +
  +
jupyter-notebook
  +
</code>

Revision as of 07:07, 29 August 2016

Using R to improve data analyses Python workflows

Software Environment

The courses are implemented as Jupyter/IPython notebooks, running Python and R. We provide a VM with preconfigured Jupyter Notebook Server for each student.

You can also setup the software environment on your own computer.

Minimum Requirement

  • Current web browser, such as Firefox, Chrome or Safari.
    • You will receive a server address and password at the start of the course.

Running the Course on your own Computer

We have only tested the course on Linux and OSX! Installation on Windows may differ!

Required Software

  • Python3 (>= 3.4) - A sufficiently recent release of Python
    • Commonly available via package managers such as apt-get install python3 or brew install python3.
    • Also available from the Python Homepage
  • Python3 pip - Python Package Manager
    • Several package managers do not install the python package manger
    • It will be available as a separate package in this case, e.g. apt-get install python3-pip.
  • Jupyter - Evaluates and renders the notebooks
    • Available via pip: pip3 install jupyter
  • RISE (optional) - provides the interactive presentation view
    • Consult the RISE Readme
    • Available via pip: pip3 install RISE && jupyter-nbextension install rise --py --sys-prefix && jupyter-nbextension enable rise --py --sys-prefix

Setting up the Environment

GKSDIR='~/gks2016' # change me

git clone https://bitbucket.org/teamkseta/gks_2016_pyr.git $GKSDIR/gks_lib

git clone https://bitbucket.org/teamkseta/gks_2016_python.git $GKSDIR/gks_2016_python

export PYTHONPATH="$GKSDIR/gks_lib:$PYTHONPATH"

jupyter-notebook