Intro to Jupyter!

Jupyter Notebook offers an interactive web interface to many languages, including IPython and R.

It combines rendering of markdown-ed text, latex-ed equations, code snippets (e.g., Python, R), and graphics as well as other outputs generated by those code snippets

Installation

https://www.continuum.io/downloads

OR

Ubuntu

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jupyter-notebook-to-run-ipython-on-ubuntu-16-04

$ sudo apt-get update

$ sudo apt-get -y install python2.7 python-pip python-dev

$ python --version

$ pip --version

$ sudo apt-get -y install ipython ipython-notebook

$ sudo -H pip install jupyter
You will likely get an error like:

"You are using pip version 8.1.1, however version 8.1.2 is available."

$ sudo -H pip install --upgrade pip

$ sudo -H pip install jupyter

====

Mac:

  1. Download Anaconda. They recommend downloading Anaconda’s latest Python 3 version (currently Python 3.5).

  2. Install the version of Anaconda which you downloaded, following the instructions on the download page.

OR:

$ pip3 install --upgrade pip

$ pip3 install jupyter

====

Windows:

https://www.continuum.io/downloads

====

That's it! You can now run it:
$ jupyter notebook

Continuing the intro...

  • #### Text formatting - markdown

  • #### Equations - $\LaTeX$

We like this one: $\frac{dN}{dt} = rN \left( 1-\frac{N}{K}\right)$

  • #### Code - Python/R/etc

In [1]:
a = "this is python!"; print a


this is python!

In [1]:
a <- "this is R!"; cat(a)


this is R!
  • #### Graphics - Python/R/etc

In [1]:
require(ggplot2)

plot(1,1)