Commit 562bdc6a authored by Éamonn Murray's avatar Éamonn Murray

Ignore ipython checkpoints

parent 0e5a9b16
......@@ -2,3 +2,4 @@
__pycache__/
tmp
*.py[cod]
.ipynb_checkpoints/
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
},
"source": [
"# Example Jupyter Notebook\n",
"\n",
"This is a simple example to show you what you can do.\n",
"This is a markdown cell. You can use it to generate a formatted description of what you're doing.\n",
"\n",
"It can parse LaTex style mathematical expressions:$$ \\Sigma_{i=0}^{10} x^2 = 285 $$\n",
"\n",
"If you enclose the expression in `$$` symbols it will be displayed on it's own line. And you can use single `$` symbols for inline equations: $\\alpha + \\beta = \\gamma$.\n",
"\n",
"There are more markdown examples at http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Working%20With%20Markdown%20Cells.html\n",
"\n",
"You can run a selected cell `ctrl+enter`, or run it and go to the next cell with `shift+enter`.\n",
"\n",
"Running a markdown cell, will render the markdown and any equations. You can double click the cell or press enter with the cell selected to go back to the source.\n",
"\n",
"Running a code cell will execute whatever code is in it. This works in the same way as an ipython notebook or using python interactively. You don't need to explicitly print output - the output of the last command in the cell will automatically be displayed. And variables or functions defined in any cell that us run will be available for use in any cell run subsequently."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# This will calculate the sum in the expression above using a list comprehension.\n",
"sum([x**2 for x in range(10)])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"a = 100"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(a)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment