Skip to content

Instantly share code, notes, and snippets.

@ryanswanstrom
Created July 22, 2013 20:43
Show Gist options
  • Save ryanswanstrom/6057503 to your computer and use it in GitHub Desktop.
Save ryanswanstrom/6057503 to your computer and use it in GitHub Desktop.
My first attempt at ipython
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "first.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#Welcome\n",
"This is my first ipython notebook. Do you like it? Here is some python code.\n"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"a = [1,2,3,4]\n"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"a"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 5,
"text": [
"[1, 2, 3, 4]"
]
}
],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"b = 7"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"a[2]\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 3,
"text": [
"3"
]
}
],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment