{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "/* \n", "* @Author: paul\n", "* @Date: 2016-02-25 17:35:32\n", "* @Last Modified by: paul\n", "* @Last Modified time: 2016-02-25 17:45:54\n", "*/\n", "\n", "\n", "\n", "\n", "\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Styling\n", "from IPython.core.display import HTML\n", "def css_styling():\n", " sheet = './css/custom.css'\n", " styles = open(sheet, \"r\").read() \n", " return HTML(styles)\n", "css_styling()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Setup instructions\n", "\n", "Choose one option of the following that applies to you, then follow the [Starting the Material Instructions](#Starting-the-Material):\n", "\n", "## 1. Recommended Setup\n", "The recommended way to obtain the prerequisites for this course is by installing the latest Python 3 [Anaconda python distribution](https://www.continuum.io/downloads) (currently 3.5). This will download all the necessary material to open the material as a jupyter notebook and run examples and exercises.\n", "\n", "## 2. Current `conda` Python Users\n", "Current Python 2.7 users with access to the `conda` package manager who do not wish to interfere with their installation can create a minimal working '`conda` environment' by entering the following command into a terminal/command prompt:\n", "\n", " conda create -n py3_oop python=3.5 jupyter numpy matplotlib\n", " \n", "And switching to this environment with\n", "\n", " source activate py3_oop # Linux/Mac\n", " activate py3_oop # Windows\n", "\n", "*(closing the terminal or using `source deactivate` will return to the default python version)*\n", "\n", "\n", "## 3. Non `conda` Users\n", "Advanced Python users not using `conda` should install the aforementioned packages with their preferred package manager. See [Jupyter installation instructions](http://jupyter.readthedocs.io/en/latest/install.html) for more detail.\n", "\n", "\n", "# Starting the Material\n", "\n", "\n", "## Testing\n", "\n", "A test script is provided to ensure you have installed the requirements correctly. Either save [This file](https://raw.githubusercontent.com/p-chambers/Python_OOP_Workshop/master/installation_test_2.py) and run `python installation_test_2.py` from a terminal, or if you have `curl` (might not work with Windows), simply enter the following one-liner:\n", "\n", " curl -L https://raw.githubusercontent.com/p-chambers/Python_OOP_Workshop/master/installation_test_2.py | python\n", "\n", "\n", "The slides and exercises should be followed as live Jupyter notebooks so that you can run and develop your own code. The instructions and terminal commands of how to do this are provided on the [Github repository](https://github.com/p-chambers/Python_OOP_Workshop), but for convenience this is repeated here:\n", "\n", "1. Clone the repository with \n", "\n", " > `git clone https://github.com/p-chambers/summer-academy-2016.git`\n", "\n", " OR if you don't have/want git, [download as a .zip](https://github.com/p-chambers/summer-academy-2016/archive/master.zip) (you'll need to extract the files), then navigate to the directory with\n", " \n", " > `cd summer-academy-2016`\n", " \n", " and view the 'index.ipynb' as a jupyter notebook with\n", "\n", " > `jupyter notebook index.ipynb`\n", "\n", " You should also remove output by clicking (in the notebook)\n", "\n", " > `Kernel > Restart > Clear all outputs and restart`" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.11" } }, "nbformat": 4, "nbformat_minor": 0 }