Skip to content

Instantly share code, notes, and snippets.

@ShekharReddy4
Forked from minrk/analysis.ipynb
Created January 2, 2017 09:30
Show Gist options
  • Save ShekharReddy4/af40235c56ebfcc48ca6dbb587ea3bba to your computer and use it in GitHub Desktop.
Save ShekharReddy4/af40235c56ebfcc48ca6dbb587ea3bba to your computer and use it in GitHub Desktop.
running one notebook from another
Display the source blob
Display the rendered blob
Raw
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