Skip to content

Commit

Permalink
added revamped jupyter notebook tutorial and new google colab version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzakka committed Apr 4, 2020
1 parent b8cf40f commit 7a3f2a9
Show file tree
Hide file tree
Showing 6 changed files with 3,700 additions and 122 deletions.
Binary file modified assets/ipython-tutorial/file-browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 7 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
<div class="home">
<div class="materials-wrap">
<div class="module-header">Spring 2020 Assignments</div>
<div class="materials-item">
<a>Assignments will show up here once they are released.</a>
</div>

<!-- <div class="materials-item">
<a href="assignments2019/assignment1/">
Assignment #1: Image Classification, kNN, SVM, Softmax, Neural Network
<a href="assignments2020/assignment1/">
Assignment #1: Image Classification, kNN, SVM, Softmax, Fully-Connected Neural Network
</a>
</div>
</div> -->

<!--
<div class="materials-item">
<a href="assignments2019/assignment2/">
Assignment #2: Fully-Connected Nets, Batch Normalization, Dropout,
Expand Down Expand Up @@ -111,7 +108,7 @@

<div class="materials-item">
<a href="setup-instructions/">
Setup Instructions
Software Setup
</a>
</div>

Expand All @@ -122,8 +119,8 @@
</div>

<div class="materials-item">
<a href="jupyter-tutorial/">
Jupyter Notebook Tutorial
<a href="jupyter-colab-tutorial/">
Jupyter Notebook / Google Colab Tutorial
</a>
</div>
<!--
Expand Down
23 changes: 10 additions & 13 deletions jupyter-colab-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,27 @@ Python code locally in your web browser. Jupyter notebooks
make it very easy to tinker with code and execute it in bits
and pieces; for this reason they are widely used in scientific
computing.
You can choose to run Google's flavor of Jupyter notebooks entirely
in the cloud using Colab. Colab is basically Jupyter notebook on
steroids: it's free, requires no setup, comes preinstalled with many packages
so everyone has access to the same dependencies, is easy to share with the world,
and has free access to hardware accelerators like GPUs and TPUs (with some caveats).
Google has released a flavor of Jupyter notebooks called Colaboratory
that runs entirely in the cloud. Colab is basically Jupyter notebook on
steroids: it's free, requires no setup, comes preinstalled with many packages,
is easy to share with the world, and benefits from free access to hardware
accelerators like GPUs and TPUs (with some caveats).

If you wish to run this tutorial
in Colab (recommended), click the `Open in Colab` link below.
If you wish to run this tutorial in Colab, click the `Open in Colab` badge below.

<div>
<a href="link to shared drive in cs231n gmail" target="_blank">
<a href="https://colab.research.google.com/github/cs231n/cs231n.github.io/blob/master/python-colab.ipynb" target="_blank">
<img class="colab-badge" src="/assets/badges/colab-open.svg" alt="Colab Notebook"/>
</a>
</div>

Otherwise, if you're reading this far, we're assuming you wish to run Jupyter notebooks locally. If your virtual environment was installed correctly (as per the [setup instructions]({{site.baseurl}}/setup-instructions/)), `jupyter notebook` should have been automatically installed. Ensure you have activated your environment before proceeding.

First, [download the notebook]() to a directory of your choosing. Then `cd` to that directory and run the following in your terminal:
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:

```
jupyter notebook
```

Once your notebook server is up and running, point your web browser to http://localhost:8888 to
Once your notebook server is up and running, point your web browser to `http://localhost:8888` to
start using your notebooks. If everything worked correctly, you should
see a screen like this, showing all available notebooks in the current
directory:
Expand All @@ -45,7 +42,7 @@ directory:
<img src='/assets/ipython-tutorial/file-browser.png'>
</div>

Click `Jupyter Notebook Tutorial` and follow the instructions in the notebook.
Click `jupyter-notebook-tutorial.ipynb` and follow the instructions in the notebook. Enjoy!

<!-- If you click through to a notebook file, you will see a screen like this: -->

Expand Down
Loading

0 comments on commit 7a3f2a9

Please sign in to comment.