Skip to content

Latest commit

 

History

History
356 lines (236 loc) · 10.8 KB

File metadata and controls

356 lines (236 loc) · 10.8 KB
marp
true
<style> img[alt~="center"] { display: block; margin: 0 auto; } </style>

Introduction to Colab


Traditional Development Environments

Integrated Development Environments


Notebooks

center


Other Options

MATLAB, etc.


What is Colab?

  • Colab is short for Google Colaboratory
  • Free, in-the-browser programming environment
  • Requires no setup
  • Runs entirely on the Cloud
  • Similar to a Jupyter notebook that is stored in Google Drive
  • Available at https://colab.research.google.com

Cells in a Colab Notebook

A notebook contains movable cells which are either code or text cells

center


Code Cells: Python

Write all code in Python 3.


Code Cells: Basic Python Print

center


Code Cells: Order of Cells vs. Cell Run Order

  • Variables you define in one cell can later be used in other cells
  • It DOES NOT matter what order the cells appear in
  • It DOES matter the order in which cells are run

Text Cells

  • Contain explanatory text and images
  • Are formatted using using a simple markup language called markdown

Markdown: Bold & Italic & Strikethrough

**bold** = bold OR __bold__ = bold

*italic* = italic OR _italic_ = italic

~~strikethrough~~ = strikethrough


Markdown: Lists

Create an Ordered List Input:

1. Item 1
1. Item 2

Output:

  1. Item 1
  2. Item 2

Markdown: Lists

Create an Unordered List Input:

* Item
* Item

Output:

  • Item 1
  • Item 2

Markdown: Embedded Lists

Input:

* Item
  1. Item 1
  1. Item 2
* Item
  1. Item 1
  1. Item 2

Output:

center


Markdown: Links

Input:

[Text](http://...)

Output:

Text


Markdown: Tables

Input:

Language | Creator(s)
--- | ---
Python | Guido van Rossum
R | Ross Ihaka, Robert Gentleman
Java | James Gosling

Output:

center


Markdown: LaTeX

Input:

$\sqrt{3x-1}+(1+x)^2$

Output:

center


Notebook Sharing

  • Sharing a Colab notebook is as easy as sharing a Google Doc
  • Can export the notebook to Github or download the file as .ipynb
  • Downloaded file is compatible for use with Jupyter Notebook or compatible environments
  • Use Seedbank to find shared Colab notebooks
  • Limited collaborative editing works (use with caution!)