Skip to content

Commit

Permalink
Stronger note on cells
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Feb 13, 2017
1 parent 0a34fea commit 4781645
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 24 deletions.
111 changes: 88 additions & 23 deletions First Python Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 88,
"metadata": {
"collapsed": true,
"deletable": true,
Expand All @@ -20,6 +20,8 @@
"execution_count": 83,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -1662,7 +1664,9 @@
"cell_type": "code",
"execution_count": 53,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -1686,6 +1690,8 @@
"execution_count": 54,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": true
},
"outputs": [
Expand All @@ -1708,7 +1714,9 @@
"cell_type": "code",
"execution_count": 55,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -1719,7 +1727,9 @@
"cell_type": "code",
"execution_count": 56,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -1880,7 +1890,9 @@
"cell_type": "code",
"execution_count": 57,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -1916,7 +1928,9 @@
"cell_type": "code",
"execution_count": 58,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -1927,7 +1941,9 @@
"cell_type": "code",
"execution_count": 59,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -1971,6 +1987,8 @@
"execution_count": 60,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -2203,6 +2221,8 @@
"execution_count": 61,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -4230,6 +4250,8 @@
"execution_count": 62,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -6257,6 +6279,8 @@
"execution_count": 84,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -6488,7 +6512,9 @@
"cell_type": "code",
"execution_count": 64,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -6571,7 +6597,9 @@
"cell_type": "code",
"execution_count": 65,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -6593,7 +6621,9 @@
"cell_type": "code",
"execution_count": 66,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -6677,6 +6707,8 @@
"execution_count": 67,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -8703,7 +8735,9 @@
"cell_type": "code",
"execution_count": 68,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -8714,7 +8748,9 @@
"cell_type": "code",
"execution_count": 69,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -8736,7 +8772,9 @@
"cell_type": "code",
"execution_count": 85,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -8967,7 +9005,9 @@
"cell_type": "code",
"execution_count": 71,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -8978,7 +9018,9 @@
"cell_type": "code",
"execution_count": 72,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -9001,6 +9043,8 @@
"execution_count": 86,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -9225,7 +9269,9 @@
"cell_type": "code",
"execution_count": 74,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -9247,7 +9293,9 @@
"cell_type": "code",
"execution_count": 75,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -9269,7 +9317,9 @@
"cell_type": "code",
"execution_count": 76,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand All @@ -9291,7 +9341,9 @@
"cell_type": "code",
"execution_count": 77,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -9325,7 +9377,9 @@
"cell_type": "code",
"execution_count": 78,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -9428,7 +9482,9 @@
"cell_type": "code",
"execution_count": 79,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -9532,6 +9588,8 @@
"execution_count": 80,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -10004,6 +10062,8 @@
"execution_count": 81,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -10599,7 +10659,10 @@
},
{
"cell_type": "raw",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
" a"
]
Expand All @@ -10608,7 +10671,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
Expand Down
Binary file modified docs/_build_html/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/index.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build_html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ First, to preview the first few rows of the dataset, try the `head <http://panda

To get a look at all of the columns and what type of data they store, add another cell and try `info <http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.info.html>`_.

.. note::

As we continue through the lesson you should assume all of the code we write is in a new cell run separately from the previous line. Breaking up your code like this so you can run it bit by bit is one of the big advantages of the Jupyter Notebook.

.. code-block:: python
props.info()
Expand Down
4 changes: 4 additions & 0 deletions docs/_build_html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ <h2>Act 3: Hello data<a class="headerlink" href="#act-3-hello-data" title="Perma
</div>
<img alt="_images/head.png" src="_images/head.png" />
<p>To get a look at all of the columns and what type of data they store, add another cell and try <a class="reference external" href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.info.html">info</a>.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">As we continue through the lesson you should assume all of the code we write is in a new cell run separately from the previous line. Breaking up your code like this so you can run it bit by bit is one of the big advantages of the Jupyter Notebook.</p>
</div>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">props</span><span class="o">.</span><span class="n">info</span><span class="p">()</span>
</pre></div>
</div>
Expand Down

0 comments on commit 4781645

Please sign in to comment.