Example python2 notebook

This is an example in python 2, with some math: $$ \Phi = - { M \over { {(r_c^2 + r^2)}^{1/2} } } \tag{1a} $$ which no doubt anybody will recognize as a Plummer potential.

Example section

More text can be organized in section

We can also add code not in cells:

    a = 1.0
    b = 1
    c = "1"

which is the ABC of datatypes. The type(variable) function in python will tell you what python thinks this variable is. Go ahead an try this in the next cell. After you have written those 3 lines of python code, you exactute the cell with the SHIFT-ENTER keys (holding SHIFT and ENTER at the same time). As you probably saw, the ENTER key allows you to enter a new line, it does not execute the cell.


In [ ]:
#  a line starting with the "#" symbol is a comment in python

Well...

did it work?