The notebooks collected here are meant to lead a beginner through a few first steps on your way to brain-hacking.

The examples are implemented in the Python programming langauge using the Jupyter/IPython notebook. To learn more about this notebook format, you can visit the project website at: http://ipython.org/. You will find the instructions on installing IPython on their website, but to make this process easy, we recommend downloading and installing the Anaconda software distribution. For some of the tutorials, you will also need the nibabel neuroimaging software.

For the purposes of reading these tutorials and experiencing them, you need to know the following about the notebook (consider reading more in this notebook, which provides a gentle introduction):

  1. Each cell is either a code cell, or a markdown cell. For example, this cell is a markdown cell.
  2. To execute a cell, press the combination: shift-enter.
  3. When executed, the cells containing markdown render into text.
  4. The cells containing code, will run that code in the python interpreter when executed.
  5. The variables defined in the notebook will persist for as long as the kernel persists. You can reset the environment by clicking \"Kernel\" => \"Restart\" in the menu at the top of the notebook.
  6. After running the computations that we have written in the notebook cells, you can explore the data further by adding code cells, or by altering the existing code cells, and rerunning them.

Use the links below to visit and run the notebooks:

  1. Hack 1: Get your data into an array.
  2. Hack 2: Look at your data.
  3. Hack 3: Perform some simple calculations.
  4. Hack 4: Build a simple interactive view of the data.

In [ ]: