def render(self): if self._job is None: return vd.div('No job') back_button = vd.button('Back to job list', onclick=self._on_back) console_out = None if 'result' in self._job: console_out = mt.loadText( path=self._job['result'].get('console_out', None)) return vd.div(vd.div(back_button), vd.div(vd.pre(console_out or '')), vd.div(vd.pre(json.dumps(self._job, indent=4))))
def render(self): # row info for the table rr = [] sdkeys = self._context.sorterDefinitionKeys() for sdkey in sdkeys: sdef = self._context.sorterDefinition(sdkey) rr.append( dict(label=sdkey, value=vd.pre(json.dumps(sdef, indent=4)))) rows = [] for r in rr: rows.append(vd.tr(vd.th(r['label']), vd.td(r['value']))) table = vd.table(rows, style={ 'text-align': 'left', 'width': 'auto', 'font-size': '13px' }, class_='table') return vd.components.ScrollArea( vd.div(vd.h2('Sorter definitions for analysis: {}'.format( self._context.analysisName())), table, height=self._size[1]))
def render(self): if self._unit_id is None: return vd.div(vd.h3('No current unit selected.')) if self._unit_detail_widget: return vd.div(self._unit_detail_widget) else: return vd.div(vd.h3('Initializing......'), vd.pre(self._init_log_text), style=dict(overflow='auto'))
def render(self): if self._view: X = self._view else: X = vd.components.ScrollArea( vd.div(vd.h3('Preparing...'), vd.pre(self._prepare_log_text_view)), height=self._size[1] - self._title_bar.height()) return vd.div(self._title_bar, X)
def render(self): result0 = self._init_result snippets = result0['snippets'] template = result0['template'] peak_chan_index = np.argmax(np.max(np.abs(template), axis=1), axis=0) peak_chan = self._context.recordingExtractor().get_channel_ids( )[peak_chan_index] return vd.div( vd.pre('Unit {} has {} events. Peak is on channel {}.'.format( self._unit_id, result0['num_events'], peak_chan)), SnippetsPlot(snippets=snippets, channel_index=peak_chan_index, size=(self._size[0], self._size[1] - 50)))
def render(self): if not self._job: return vd.div('none') status = self._job_status.get('status') if not status: status = 'unknown' if self._job_console_output is not None: #contenteditable is used to enable ctrl+a select console_output_elmt = vd.div(vd.pre(self._job_console_output), style={ 'background': 'black', 'color': 'white' }, contenteditable="true") else: console_output_elmt = self._show_console_output_button table = vd.table(vd.tr(vd.td('Status:'), vd.td(status))) out = vd.div(console_output_elmt, style=dict(overflow='auto', height='300px')) ret = vd.div(vd.h3(self._job['label']), table, out) return ret
def render(self): return vd.pre(json.dumps(self._units_info, indent=2))
def render(self): if self._unit_table_widget: return vd.div(self._unit_table_widget) else: return vd.div(vd.h3('Initializing...'), vd.pre(self._init_log_text))
def render(self): state0 = self._context.stateObject() return vd.div(vd.pre(json.dumps(state0, indent=4)))
def render(self): sr = self._sr_context.sortingResultObject() return vd.components.ScrollArea(vd.pre(json.dumps(sr, indent=4)), height=self._size[1])
def render(self): if not self._object: return vd.div('Unable to load comparison data.') return vd.components.ScrollArea(vd.pre(json.dumps(self._object, indent=4)), height=self._size[1])
def render(self): if not self._stats: return vd.div('No stats found') return vd.div(vd.pre(json.dumps(self._stats, indent=4)))
def render(self): return vd.components.ScrollArea(vd.pre(self._text), height=self._size[1])