You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise, if you're reading this far, we're assuming you wish to run the notebook locally. If your virtual environment was installed correctly (as per the [setup instructions]({{site.baseurl}}/setup-instructions/)), activate it, then run `pip install notebook` to install Jupyter notebook. Next, [open the notebook](https://raw.githubusercontent.com/cs231n/cs231n.github.io/master/jupyter-notebook-tutorial.ipynb) and download it to a directory of your choice by right-clicking on the page and selecting `Save Page As`. Then `cd` to that directory and run the following in your terminal:
29
+
If youwish to run the notebook locally make sure your virtual environment was installed correctly (as per the [setup instructions]({{site.baseurl}}/setup-instructions/)), activate it, then run `pip install notebook` to install Jupyter notebook. Next, [open the notebook](https://raw.githubusercontent.com/cs231n/cs231n.github.io/master/jupyter-notebook-tutorial.ipynb) and download it to a directory of your choice by right-clicking on the page and selecting `Save Page As`. Then `cd` to that directory and run the following in your terminal:
Copy file name to clipboardExpand all lines: python-numpy-tutorial.md
+37-6Lines changed: 37 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
layout: page
3
-
title: Python Numpy Tutorial
3
+
title: Python Numpy Tutorial (with Jupyter and Colab)
4
4
permalink: /python-numpy-tutorial/
5
5
---
6
6
@@ -18,14 +18,17 @@ help of a few popular libraries (numpy, scipy, matplotlib) it becomes a powerful
18
18
environment for scientific computing.
19
19
20
20
We expect that many of you will have some experience with Python and numpy;
21
-
for the rest of you, this section will serve as a quick crash course both on
22
-
the Python programming language and on the use of Python for scientific
23
-
computing.
21
+
for the rest of you, this section will serve as a quick crash course on both
22
+
the Python programming language and its use for scientific
23
+
computing. We'll also introduce notebooks, which are a very convenient way
24
+
of tinkering with Python code. Some of you may have previous knowledge in Matlab,
25
+
in which case we also recommend the [numpy for Matlab users](http://wiki.scipy.org/NumPy_for_Matlab_Users)
26
+
page.
24
27
25
-
Some of you may have previous knowledge in Matlab, in which case we also recommend the [numpy for Matlab users](http://wiki.scipy.org/NumPy_for_Matlab_Users) page.
26
28
27
-
Table of contents:
29
+
**Table of Contents**
28
30
31
+
-[Jupyter and Colab Notebooks](#jupyter-and-colab-notebooks)
29
32
-[Python](#python)
30
33
-[Python versions](#python-versions)
31
34
-[Basic data types](#basic-data-types)
@@ -52,6 +55,34 @@ Table of contents:
52
55
-[Subplots](#subplots)
53
56
-[Images](#images)
54
57
58
+
## Jupyter and Colab Notebooks
59
+
60
+
A Jupyter notebook lets you write and execute
61
+
Python code *locally* in your web browser. Jupyter notebooks
62
+
make it very easy to tinker with code and execute it in bits
63
+
and pieces; for this reason they are widely used in scientific
64
+
computing.
65
+
Colab on the other hand is Google's flavor of
66
+
Jupyter notebooks that is particularly suited for machine
67
+
learning and data analysis and that runs entirely in the *cloud*.
68
+
Colab is basically Jupyter notebook on steroids: it's free, requires no setup,
69
+
comes preinstalled with many packages, is easy to share with the world,
70
+
and benefits from free access to hardware accelerators like GPUs and TPUs (with some caveats).
71
+
72
+
**Run Tutorial in Colab (recommended)**. If you wish to run this tutorial entirely in Colab, click the `Open in Colab` badge at the very top of this page.
73
+
74
+
**Run Tutorial in Jupyter Notebook**. If you wish to run the notebook locally with Jupyter, make sure your virtual environment is installed correctly (as per the [setup instructions]({{site.baseurl}}/setup-instructions/)), activate it, then run `pip install notebook` to install Jupyter notebook. Next, [open the notebook](https://raw.githubusercontent.com/cs231n/cs231n.github.io/master/jupyter-notebook-tutorial.ipynb) and download it to a directory of your choice by right-clicking on the page and selecting `Save Page As`. Then `cd` to that directory and run `jupyter notebook`.
0 commit comments