コード例 #1
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     for identifier, plots in self.iteritems():
         display_html(
             '<h2>Interactive Plots for {}</h2>'.format(identifier),
             raw=True)
         display_html(plots)
コード例 #2
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     xaxis, yaxis = self.config['x'], self.config.get('y', None)
     yaxes = [yaxis] if yaxis is not None else \
             [col for col in self.table.columns if col != xaxis]
     xvals = self.table[xaxis].tolist()
     traces = [
         dict(x=xvals, y=self.table[axis].tolist(), name=axis)
         for axis in yaxes
     ]
     layout = dict(
         xaxis=dict(title=xaxis),
         yaxis=dict(title=self.config['table']),
         legend=dict(x=0.7, y=1),
         margin=dict(r=0, t=40),
     )
     fig = dict(data=traces, layout=layout)
     display(
         HTML(
             _plot_html(fig,
                        False,
                        '',
                        True,
                        '100%',
                        525,
                        global_requirejs=True)[0]))
コード例 #3
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     for identifier, tables in self.iteritems():
         if identifier != mp_level01_titles[0] and tables:
             display_html('<h2>Tabular Data for {}</h2>'.format(identifier),
                          raw=True)
             display_html(tables)
コード例 #4
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     for name, plot in self.iteritems():
         display_html('<h3>{}</h3>'.format(name), raw=True)
         display_html(plot)
コード例 #5
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     display(HTML(render_plot(self)))
コード例 #6
0
 def _ipython_display_(self):
     disable_ipython_scrollbar()
     display(HTML(render_dataframe(self)))