Welcome

Welcome to Pineapple, the next generation scientific notebook.

This example is for Python 2.7

Run Python code


In [1]:
2 ** 64


Out[1]:
18446744073709551616L

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 with numpy


In [3]:
import numpy as np
A = np.linspace(1, 9, 9).reshape(3, 3)
A.dot(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 [6]:
import urllib2
png = urllib2.urlopen('http://i.imgur.com/IyUsYQ8.png')
img = plt.imread(png)
plt.imshow(img);


Documentation

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