Welcome

Welcome to Pineapple, the next generation scientific notebook.

Run Python code


In [1]:
2 ** 64


Out[1]:
18446744073709551616

You can make plots right in the notebook


In [2]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10)
plt.plot(x, np.sin(x));


Matrix operations are built-in

Pineapple uses Python 3.5, so you can use @ to do matrix multiplication.


In [3]:
import numpy as np
A = np.linspace(1, 9, 9).reshape(3, 3)
A @ A


Out[3]:
array([[  30.,   36.,   42.],
       [  66.,   81.,   96.],
       [ 102.,  126.,  150.]])

Typeset pretty formulas

$$ \sum_{i=1}^n i = \frac{n(n+1)}{2} $$

$$ \sum_{i=1}^n i = \frac{n(n+1)}{2} $$

Work with images


In [4]:
import urllib.request
import io
png = io.BytesIO(
    urllib.request.urlopen('http://i.imgur.com/IyUsYQ8.png').read())
img = plt.imread(png)
plt.imshow(img);


Documentation

Documentation and example notebooks can be accessed at any time from the File - Examples... menu.