Jupyter Notebook Tutorial : Part 2

Now open Jupyter Notebook on browser like we talked in Part 1 of this series. On the right hand side there will be a “New” dropdown menu. If you click it, that first option will be “Python3” (which you’ll normally click to start works), other options includes a terminal. You’ll see the input field :

Vim

1

In[]

Copy paste this :

Vim

1

print("The answer is",2*2)

then click the RUN button, which should return “The answer is 4”. If you want a LaTeX output, run this :

Vim

1

2

from IPython.display import display,Math,Latex

display(Math(r'sqrt{a^2 + b^2}'))

For the next steps of guides, you need to install :

Pandas

NumPy

SciPy

Plotly

matplotlib

via pi. For Mac OS X appendicectomy sudo -H before the commands and run :

Vim

1

2

3

4

5

pip install pandas

pip install numpy

pip install scipy

pip install plotly

pip install matplotlib

pip install numpy will show that previous command already installed it. Now again freshly launch Jupyter notebook with the command :

Vim

1

jupyter notebook

In that Jupiter notebook’s input, enter this and run, which is example of using Plotly :