Skip to content

Instantly share code, notes, and snippets.

@cyberbikepunk
Last active September 19, 2015 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberbikepunk/c5dc90ed29a7c2515e16 to your computer and use it in GitHub Desktop.
Save cyberbikepunk/c5dc90ed29a7c2515e16 to your computer and use it in GitHub Desktop.
The generic ipython notebook format
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# The first line is the title\n",
"\n",
"The first paragraph is the excerpt.\n",
"\n",
"## A random header\n",
"\n",
"This is a random paragraph.\n",
"\n",
"This is another randon paragraph."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1 + 1 is...\n"
]
},
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def plus(a, b):\n",
" print('%s + %s is...' % (a, b))\n",
" return a + b\n",
"\n",
"result = plus(1, 1)\n",
"result"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Another random header\n",
"\n",
"This is a bullet list:\n",
"* item 1\n",
"* item 2\n",
"\n",
"This is yet another paragraph. "
]
}
],
"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.4.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment