Skip to content

Commit

Permalink
More headings in jupyter_notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jhconning committed Jan 22, 2016
1 parent 0bfb39f commit a7e3eeb
Showing 1 changed file with 44 additions and 29 deletions.
73 changes: 44 additions & 29 deletions notebooks/jupyter_notebooks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"```\n",
"web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.\n",
"```"
"### Introduction\n",
"* Jupyter Notebook is \"a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.\""
]
},
{
Expand All @@ -41,12 +40,13 @@
}
},
"source": [
"**Jupyter Notebooks**\n",
"* **Open-source, fast evolving:** Widely used in academic and scientific computing community.\n",
"* **Ties things together:** Code, data, documentation, output and analysis all in one place.\n",
"* **Encourages replicable science:** \n",
" * Easy workflow from draft to publish. \n",
" * Works especially well with github and other open-source sharing tools."
"* **Open-source, fast evolving, large community:** Widely used in academic and scientific computing community.\n",
"\n",
"* **Ties projects together:** Code, data, documentation, output and analysis all in one place.\n",
"\n",
"* **Encourages reproducible science:** \n",
" * Easy workflow from exploratory analysis to publish. \n",
" * Works well with github and other open-source sharing tools."
]
},
{
Expand All @@ -57,26 +57,31 @@
}
},
"source": [
"* **Interactive notebooks**: run Jupyter on a local machine or cloud server for live notebook or slideshow. Modify parameters and code on the fly.\n",
" * [DHBox](http://dhbox.org/): setup an account and run jupyter in the cloud (nothing to install) on this Graduate Center Project. You can install new libraries and save work.\n",
" * [Try Jupyter](https://try.jupyter.org/): another cloud server, but you can't save work.\n",
" * [Install Jupyter notebook on your local machine](https://www.continuum.io/downloads). I recommend the [Anaconda distribution](https://www.continuum.io/downloads) installer (with python 3.5) for easy installation of Jupyter and a full scientific python environment."
"#### Ways to run and view notebooks\n",
"##### Jupyter server for interactive computing \n",
"* Run on a local machine or cloud server to modify code and results on the fly. A few options:\n",
" * [Jupyter notebook on your local machine](https://www.continuum.io/downloads). I recommend the [Anaconda distribution](https://www.continuum.io/downloads) for easy installation of Jupyter and scientific python.\n",
" * [DHBox](http://dhbox.org/): Graduate Center cloud server. You can install new libraries and save work.\n",
" * [Try Jupyter](https://try.jupyter.org/): cloud server, but you can't save work.\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
"slide_type": "subslide"
}
},
"source": [
"* **Static notebooks for publishing and presentation.** Notebooks can be easily converted to simply or beautifully styled HTML or PDF using tools and services such as github, nbconvert, [Sphinx](http://www.sphinx-doc.org/) and [Read the Docs](https://readthedocs.org/). \n",
"* **This very notebook** can be viewed:\n",
" * rendered in simple HTML directly from [the Dev-II repository on github](https://github.com/jhconning/Dev-II/blob/master/notebooks/jupyter_notebooks.ipynb) where it is hosted.\n",
" * rendered in HTML or as javascript slideshow [via nbviewer](Code, data, documentation, output and analysis all in one place.) (to see in slideshow mode click on 'present' icon on top right).\n",
" * Stiched together with other documents via Sphinx to create a beautiful [website on readthedocs](http://dev-ii-seminar.readthedocs.org/en/latest/jupyter_notebooks.html) \n",
" * As a [PDF book also on readthedocs](https://media.readthedocs.org/pdf/dev-ii-seminar/latest/dev-ii-seminar.pdf)\n"
"##### Static rendering for presentations and publishing.\n",
"\n",
"* Simple or beautifully styled HTML or PDF renderings using tools and services such as github, nbconvert, [Sphinx](http://www.sphinx-doc.org/) and [Read the Docs](https://readthedocs.org/). \n",
"* For example **this very notebook** is:\n",
" * hosted on [the Dev-II repository on github](https://github.com/jhconning/Dev-II/blob/master/notebooks/jupyter_notebooks.ipynb) where it is rendered in simple HTML.\n",
" * viewable in HTML or as javascript slideshow [via nbviewer](Code, data, documentation, output and analysis all in one place.) (to see in slideshow mode click on 'present' icon on top right).\n",
" * Tied together with other documents via Sphinx to create a [website on readthedocs](http://dev-ii-seminar.readthedocs.org/en/latest/jupyter_notebooks.html) \n",
" * Also viewable as a [PDF book on readthedocs](https://media.readthedocs.org/pdf/dev-ii-seminar/latest/dev-ii-seminar.pdf)\n"
]
},
{
Expand Down Expand Up @@ -109,7 +114,7 @@
}
},
"source": [
"**Neoclassical growth theory predicts incomes per capita should converge**: \n",
"#### Neoclassical growth theory predicts incomes per capita should converge\n",
"\n",
"* Solow-growth model with Cobb-Douglas technology $f(k)=k^\\alpha$. \n",
"* Technology, saving rate $s$, capital depreciation rate $\\delta$, population growth rate $n$ and technological change rate $g$ assumed same across countries.\n",
Expand All @@ -132,9 +137,9 @@
"\n",
"**Did countries with low levels of income per capita in 1960 grow faster?**\n",
"\n",
"I found a dataset from World Penn Tables [here](http://www.reed.edu/economics/course_pages/304_f07/asgns/HW7_empirical.pdf).\n",
"A dataset from World Penn Tables [here](http://www.reed.edu/economics/course_pages/304_f07/asgns/HW7_empirical.pdf).\n",
"\n",
"Import useful libraries for data handling and plots and then load the data:"
"Import useful libraries for data handling and plots and then load the dataset into a pandas dataframe:"
]
},
{
Expand Down Expand Up @@ -181,7 +186,7 @@
}
},
"source": [
"**Scatterplot of log GDP per capita and average growth 1960-2000:**"
"#### Scatterplot of log GDP per capita and average growth 1960-2000:"
]
},
{
Expand Down Expand Up @@ -218,7 +223,7 @@
}
},
"source": [
"**Same plot but excluding African countries:**"
"#### Same plot but excluding African countries:"
]
},
{
Expand Down Expand Up @@ -252,7 +257,7 @@
}
},
"source": [
"**If running this notebook interactively... radio buttons to switch region and re-plot:**"
"#### When running interactively ... radio buttons to switch region and re-plot:"
]
},
{
Expand Down Expand Up @@ -287,14 +292,24 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Where to learn more about jupyter notebooks and scientific python\n",
"\n",
"* The best short primer for learning about Jupyter notebooks and scientific python that I know about has been written by John Stachurski is available at this link: [http://quant-econ.net/py/learning_python.html](http://quant-econ.net/py/learning_python.html)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
Expand Down

0 comments on commit a7e3eeb

Please sign in to comment.