Created
February 21, 2016 05:12
-
-
Save iiLaurens/b7a2739e824807333a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Welcome to the Temporary Notebook (tmpnb) service!\n", | |
"\n", | |
"This Notebook Server was **launched just for you**. It's a temporary way for you to try out a recent development version of the IPython/Jupyter notebook.\n", | |
"\n", | |
"<div class=\"alert alert-warning\" role=\"alert\" style=\"margin: 10px\">\n", | |
"<p>**WARNING**</p>\n", | |
"\n", | |
"<p>Don't rely on this server for anything you want to last - your server will be *deleted after 10 minutes of inactivity*.</p>\n", | |
"</div>\n", | |
"\n", | |
"Your server is hosted thanks to [Rackspace](http://bit.ly/tmpnbdevrax), on their on-demand bare metal servers, [OnMetal](http://bit.ly/onmetal).\n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### Run some Python code!\n", | |
"\n", | |
"To run the code below:\n", | |
"\n", | |
"1. Click on the cell to select it.\n", | |
"2. Press `SHIFT+ENTER` on your keyboard or press the play button (<button class='fa fa-play icon-play btn btn-xs btn-default'></button>) in the toolbar above.\n", | |
"\n", | |
"A full tutorial for using the notebook interface is available [here](ipython_examples/Notebook/Index.ipynb)." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"%matplotlib inline\n", | |
"\n", | |
"import pandas as pd\n", | |
"import numpy as np\n", | |
"import matplotlib\n", | |
"\n", | |
"from matplotlib import pyplot as plt\n", | |
"import seaborn as sns\n", | |
"\n", | |
"ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))\n", | |
"ts = ts.cumsum()\n", | |
"\n", | |
"df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index,\n", | |
" columns=['A', 'B', 'C', 'D'])\n", | |
"df = df.cumsum()\n", | |
"plt.figure(); df.plot(); plt.legend(loc='best')" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Feel free to open new cells using the plus button (<button class='fa fa-plus icon-plus btn btn-xs btn-default'></button>), or hitting shift-enter while this cell is selected.\n", | |
"\n", | |
"Behind the scenes, the software that powers this is [tmpnb](https://github.com/jupyter/tmpnb), a Tornado application that spawns [pre-built Docker containers](https://github.com/ipython/docker-notebook) and then uses the [jupyter/configurable-http-proxy](https://github.com/jupyter/configurable-http-proxy) to put your notebook server on a unique path." | |
] | |
} | |
], | |
"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