-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathipythonproject.py
More file actions
38 lines (32 loc) · 1.11 KB
/
ipythonproject.py
File metadata and controls
38 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from IPython.display import HTML, display
devs = [
('Fernando Perez', 'fperez.jpg'),
('Brian Granger', 'ellisonbg.jpg'),
('Min Ragan-Kelley', 'minrk.jpg'),
('Thomas Kluyver', 'takluyver.jpg'),
('Matthias Bussonnier', 'matthias.jpg'),
('Jonathan Frederic', 'jdfreder.jpg'),
('Paul Ivanov', 'ivanov.jpg'),
('Evan Patterson', 'epatters.jpg'),
('Damian Avila', 'damianavila.jpg'),
('Brad Froehle', 'brad.jpg'),
('Zach Sailer', 'zsailer.jpg'),
('Robert Kern', 'rkern.jpg'),
('Jorgen Stenarson', 'jorgen.jpg'),
('Jonathan March', 'jdmarch.jpg'),
('Kyle Kelley', 'rgbkrk.jpg')
]
def chunks(l, n):
return [l[i:i+n] for i in range(0, len(l), n)]
s = "<table>"
for row in chunks(devs, 4):
s += "<tr>"
for person in row:
s += "<td>"
s += '<img src="ipythonteam/{image}" style="height: 150px; text-align: center; margin-left: auto; margin-right: auto;"/>'.format(image=person[1])
s += '<h3 style="text-align: center;">{name}</h3>'.format(name=person[0])
s += "</td>"
s += "</tr>"
s += "</table>"
def core_devs():
display(HTML(s))