Skip to content

Commit

Permalink
Try to fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Sep 16, 2022
1 parent 63a45e1 commit 1d08baa
Showing 1 changed file with 34 additions and 40 deletions.
74 changes: 34 additions & 40 deletions jupyterlite/fast-python-notebook/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"<div style=\"max-width: 640px\">\n",
"\n",
"An accelerated guide to analyzing data with the [Python](https://www.python.org/) programming language and a [Jupyter](https://jupyter.org/) notebook\n",
"An accelerated guide to analyzing data with the <a href=\"https://www.python.org/\">Python</a> programming language and a <a href=\"https://jupyter.org/\">Jupyter</a> notebook\n",
"\n",
"</div>\n",
" \n",
Expand All @@ -25,9 +25,9 @@
"source": [
"<div style=\"max-width: 640px\">\n",
"\n",
"First developed in 2016, [\"First Python Notebook\"](https://palewi.re/docs/first-python-notebook/) is a tutorial that guides students through a data-driven investigation of money in California politics. It is most commonly taught as a six-hour, in-person class. This document is an abbreviated spinoff intended to be taught online in two to three hours.\n",
"First developed in 2016, <a href=\"https://palewi.re/docs/first-python-notebook/\">\"First Python Notebook\"</a> is a tutorial that guides students through a data-driven investigation of money in California politics. It is most commonly taught as a six-hour, in-person class. This document is an abbreviated spinoff intended to be taught online in two to three hours.\n",
"\n",
"You will learn just enough of the Python computer programming language to work with the [pandas](https://pandas.pydata.org/) library, a popular open-source tool for analyzing data. The course will teach you how to read, filter, join, group, aggregate and rank structured data by recreating a helicopter accident analysis [published by the Los Angeles Times](https://github.com/datadesk/helicopter-accident-analysis).\n",
"You will learn just enough of the Python computer programming language to work with the <a href=\"https://pandas.pydata.org/\">pandas</a> library, a popular open-source tool for analyzing data. The course will teach you how to read, filter, join, group, aggregate and rank structured data by recreating a helicopter accident analysis <a href=\"https://github.com/datadesk/helicopter-accident-analysis\">published by the Los Angeles Times</a>.\n",
" \n",
"</div>"
]
Expand All @@ -49,22 +49,18 @@
"source": [
"<div style=\"max-width: 640px\">\n",
"\n",
"![jupyter](https://palewi.re/docs/first-python-notebook/_static/img/labpreview.webp)\n",
"\n",
"A [Jupyter](https://jupyter.org/) notebook is a browser-based interface where you can write, run, remix and republish code. It is free software that anyone can install and run.\n",
"\n",
"[Scientists](https://nbviewer.jupyter.org/github/robertodealmeida/notebooks/blob/master/earth_day_data_challenge/Analyzing%20whale%20tracks.ipynb), [scholars](https://nbviewer.jupyter.org/github/nealcaren/workshop_2014/blob/master/notebooks/5_Times_API.ipynb), [investors](https://github.com/rsvp/fecon235/blob/master/nb/fred-debt-pop.ipynb) and [corporations](https://netflixtechblog.com/notebook-innovation-591ee3221233) use Jupyter to create and share their research. It is also used by journalists to develop stories and show their work. Examples include:\n",
"\n",
"* [“The Tennis Racket”](https://github.com/BuzzFeedNews/2016-01-tennis-betting-analysis/blob/master/notebooks/tennis-analysis.ipynb) by BuzzFeed and the BBC\n",
"* [“Machine bias”](https://github.com/propublica/compas-analysis/blob/master/Compas%20Analysis.ipynb) by ProPublica\n",
"* [“As Opioid Crisis Ramped Up, Pills Flowed Into Vermont by the Millions”](https://github.com/asuozzo/arcos-opioid-analysis-vt) by Seven Days\n",
"* [More than 35 different notebooks](https://github.com/datadesk/notebooks) published by the Los Angeles Times\n",
"\n",
"There are numerous ways to install and configure Jupyter notebooks. This class is taught using [JupyterLite](https://jupyterlite.readthedocs.io/) a lightweight distribution that runs entirely in your web browser. For instructions on how to install a more powerful version on your computer consult [the full edition of \"First Python Notebook.'](https://palewi.re/docs/first-python-notebook/jupyter_desktop.html)\n",
"\n",
"Once you have this notebook up and running, you're ready to write Python in a code cell. Do not stress. There is nothing too fancy about it. You can start by just doing a little simple math.\n",
"\n",
"Select the box below, then hit the play button in the toolbar above the notebook or hit `SHIFT+ENTER` on your keyboard.\n",
"<p><img src=\"https://palewi.re/docs/first-python-notebook/_static/img/labpreview.webp\" alt=\"jupyter\"></p>\n",
"<p>A <a href=\"https://jupyter.org/\">Jupyter</a> notebook is a browser-based interface where you can write, run, remix and republish code. It is free software that anyone can install and run.</p>\n",
"<p><a href=\"https://nbviewer.jupyter.org/github/robertodealmeida/notebooks/blob/master/earth_day_data_challenge/Analyzing%20whale%20tracks.ipynb\">Scientists</a>, <a href=\"https://nbviewer.jupyter.org/github/nealcaren/workshop_2014/blob/master/notebooks/5_Times_API.ipynb\">scholars</a>, <a href=\"https://github.com/rsvp/fecon235/blob/master/nb/fred-debt-pop.ipynb\">investors</a> and <a href=\"https://netflixtechblog.com/notebook-innovation-591ee3221233\">corporations</a> use Jupyter to create and share their research. It is also used by journalists to develop stories and show their work. Examples include:</p>\n",
"<ul>\n",
"<li><a href=\"https://github.com/BuzzFeedNews/2016-01-tennis-betting-analysis/blob/master/notebooks/tennis-analysis.ipynb\">“The Tennis Racket”</a> by BuzzFeed and the BBC</li>\n",
"<li><a href=\"https://github.com/propublica/compas-analysis/blob/master/Compas%20Analysis.ipynb\">“Machine bias”</a> by ProPublica</li>\n",
"<li><a href=\"https://github.com/asuozzo/arcos-opioid-analysis-vt\">“As Opioid Crisis Ramped Up, Pills Flowed Into Vermont by the Millions”</a> by Seven Days</li>\n",
"<li><a href=\"https://github.com/datadesk/notebooks\">More than 35 different notebooks</a> published by the Los Angeles Times</li>\n",
"</ul>\n",
"<p>There are numerous ways to install and configure Jupyter notebooks. This class is taught using <a href=\"https://jupyterlite.readthedocs.io/\">JupyterLite</a> a lightweight distribution that runs entirely in your web browser. For instructions on how to install a more powerful version on your computer consult <a href=\"https://palewi.re/docs/first-python-notebook/jupyter_desktop.html\">the full edition of &quot;First Python Notebook.&#39;</a></p>\n",
"<p>Once you have this notebook up and running, you&#39;re ready to write Python in a code cell. Do not stress. There is nothing too fancy about it. You can start by just doing a little simple math.</p>\n",
"<p>Select the box below, then hit the play button in the toolbar above the notebook or hit <code>SHIFT+ENTER</code> on your keyboard.</p>\n",
" \n",
"</div>"
]
Expand Down Expand Up @@ -185,11 +181,12 @@
"source": [
"<div style=\"max-width: 640px;\">\n",
"\n",
"Over time you will gradually stack cells to organize an analysis that runs from top to bottom. The cells can contain variables, functions and other Python tools.\n",
"\n",
"> Note: If you’ve never written code before, we recommend [\"An Informal Introduction to Python\"](https://docs.python.org/3/tutorial/introduction.html) and subsequent sections of python.org’s tutorial.\n",
"<p>Over time you will gradually stack cells to organize an analysis that runs from top to bottom. The cells can contain variables, functions and other Python tools.</p>\n",
"<div class=\"alert alert-block alert-warning\">\n",
"<p>If you’ve never written code before, we recommend <a href=\"https://docs.python.org/3/tutorial/introduction.html\">&quot;An Informal Introduction to Python&quot;</a> and subsequent sections of python.org’s tutorial.</p>\n",
"</div>\n",
"<p>A simple example would be storing your number in a variable in one cell:</p>\n",
"\n",
"A simple example would be storing your number in a variable in one cell:\n",
" \n",
"</div>"
]
Expand Down Expand Up @@ -301,19 +298,15 @@
"id": "6a769ba4-a9a9-4c26-bbfd-a14ea202b81a",
"metadata": {},
"source": [
"<div style=\"max-width: 640px\">\n",
"## What is pandas? \n",
"\n",
"## What is pandas? \n",
" \n",
"![pandas on the Python Package Index](https://palewi.re/docs/first-python-notebook/_static/img/pandas-pypi.png)\n",
"\n",
"Lucky for us, Python is filled with functions to do almost anything you’d want to do with a programming language: [navigate the web](http://docs.python-requests.org/), [parse data](https://docs.python.org/2/library/csv.html), [interact with a database](http://www.sqlalchemy.org/), [run fancy statistics](https://www.scipy.org/), [build a pretty website](https://www.djangoproject.com/) and [so](https://www.crummy.com/software/BeautifulSoup/) [much](http://www.nltk.org/) [more](https://pillow.readthedocs.io/en/stable/).\n",
"\n",
"Creative people have put these tools to work to get a [wide range of things](https://www.python.org/about/success/) done in the academy, the laboratory and even in outer space.\n",
"\n",
"Some of those tools are included in a toolbox that comes with the language, known as the standard library. Others have been built by members of Python’s developer community and need to be separately downloaded and installed. One third-party tool that’s important for this class is called [pandas](https://pandas.pydata.org/). Invented by programmers at a [financial investment firm](https://www.aqr.com/), it has become a leading open-source library for accessing and analyzing data.\n",
"\n",
"Here’s how to use pandas yourself. Run the following:\n",
"<div style=\"max-width: 640px\">\n",
" \n",
"<p><img src=\"https://palewi.re/docs/first-python-notebook/_static/img/pandas-pypi.png\" alt=\"pandas on the Python Package Index\"></p>\n",
"<p>Lucky for us, Python is filled with functions to do almost anything you’d want to do with a programming language: <a href=\"http://docs.python-requests.org/\">navigate the web</a>, <a href=\"https://docs.python.org/2/library/csv.html\">parse data</a>, <a href=\"http://www.sqlalchemy.org/\">interact with a database</a>, <a href=\"https://www.scipy.org/\">run fancy statistics</a>, <a href=\"https://www.djangoproject.com/\">build a pretty website</a> and <a href=\"https://www.crummy.com/software/BeautifulSoup/\">so</a> <a href=\"http://www.nltk.org/\">much</a> <a href=\"https://pillow.readthedocs.io/en/stable/\">more</a>.</p>\n",
"<p>Creative people have put these tools to work to get a <a href=\"https://www.python.org/about/success/\">wide range of things</a> done in the academy, the laboratory and even in outer space.</p>\n",
"<p>Some of those tools are included in a toolbox that comes with the language, known as the standard library. Others have been built by members of Python’s developer community and need to be separately downloaded and installed. One third-party tool that’s important for this class is called <a href=\"https://pandas.pydata.org/\">pandas</a>. Invented by programmers at a <a href=\"https://www.aqr.com/\">financial investment firm</a>, it has become a leading open-source library for accessing and analyzing data.</p>\n",
"<p>Here’s how to use pandas yourself. Run the following:</p>\n",
" \n",
"</div>"
]
Expand All @@ -335,11 +328,12 @@
"source": [
"<div style=\"max-width: 640px\">\n",
"\n",
"If nothing happens, that’s good. It means you have it installed and ready as to use.\n",
"\n",
"> Note: Since pandas is created by a third party independent from the core Python developers, it may not be available by default if you manually installed Python and Jupyter. It’s available here because JupyterLite, whose developers have curated a list of common utilities to include with their distribution. Consult our [advanced installation guide](https://palewi.re/docs/first-python-notebook/appendix/index.html) if the cell above threw an error.\n",
"<p>If nothing happens, that’s good. It means you have it installed and ready as to use.</p>\n",
"<div class=\"alert alert-block alert-warning\">\n",
"<p>Since pandas is created by a third party independent from the core Python developers, it may not be available by default if you manually installed Python and Jupyter. It’s available here because JupyterLite, whose developers have curated a list of common utilities to include with their distribution. Consult our <a href=\"https://palewi.re/docs/first-python-notebook/appendix/index.html\">advanced installation guide</a> if the cell above threw an error.</p>\n",
"</div>\n",
"<p>Now let&#39;s run the same code again, but with a small addition.</p>\n",
"\n",
"Now let's run the same code again, but with a small addition.\n",
" \n",
"</div>"
]
Expand Down Expand Up @@ -416,7 +410,7 @@
"source": [
"<div style=\"max-width: 640px\">\n",
"\n",
"Once the data becomes a `Series`, you can immediately run a wide range of [descriptive statistics](https://en.wikipedia.org/wiki/Descriptive_statistics). Let’s try a few.\n",
"Once the data becomes a `Series`, you can immediately run a wide range of <a href=\"https://en.wikipedia.org/wiki/Descriptive_statistics\">descriptive statistics</a>. Let’s try a few.\n",
"\n",
"First, let’s sum all the numbers.\n",
" \n",
Expand Down

0 comments on commit 1d08baa

Please sign in to comment.