163 def create(self):
164 """
165 Create the widget
166 """
167
168 import ipywidgets as widgets
169
170 if self.collections is None:
171 return widgets.HTML("")
172
173 a = widgets.Tab()
174 children = []
175
176 for i, event in enumerate(self.collections):
177 html = widgets.HTML()
178 html.value = """<table style="border-collapse: separate; border-spacing: 50px 0;">"""
179 for store_content in event.content:
180 html.value += self.table_row_html.format(content=store_content)
181 html.value += "</table>"
182 children.append(html)
183 a.set_title(i, "Event " + str(event.event_number))
184
185 a.children = children
186
187 return a
188
189