Skip to content

Instantly share code, notes, and snippets.

@minrk
Created April 30, 2013 19:05
Show Gist options
  • Save minrk/5491090 to your computer and use it in GitHub Desktop.
Save minrk/5491090 to your computer and use it in GitHub Desktop.
running one notebook from another
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "loaddata"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook will be executed from the [analysis](analysis.ipynb) notebook"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Create some dumb data"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"x = np.linspace(0,2*np.pi)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"And some 'derivative' data"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"s = np.sin(x)\n",
"c = np.cos(x)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment