In [1]:
%%HTML
<style>
div.cell {
background-color: rgba(255,200,255,0.85);
font-family: Georgia, Cursive;
font-size: 120%;
border-radius: 10px;
}
.MathJax_Display {
text-align: center;
}
body {
background-color: #AAFFFF;
background-image: url('https://raw.github.com/chenleo/Resource/master/Images/FirstKiss1600X1200.jpg');
background-size: cover;
background-repeat: no-repeat;
background--attachment: fixed;
}
</style>
In [1]:
import os
import sys
In [2]:
%qtconsole
In [3]:
sys.version
#ipython-2.7 notebook (in office)
Out[3]:
In [4]:
pwd
Out[4]:
In [6]:
os.chdir("../programming-collective-intelligence-code/")
In [7]:
pwd
Out[7]:
In [8]:
%timeit 1+1
In [9]:
os.chdir("chapter2/")
In [10]:
!ls
In [11]:
from recommendations import critics
import recommendations
In [16]:
people = critics.keys()
print people
In [17]:
recommendations.sim_distance(critics, people[3], people[5])
Out[17]:
In [ ]: