def _init_builder(self, reaction_data, reaction_scale): if os.path.isfile(self.map_name): self.builder = NotebookBuilder(map_json=self.map_name, reaction_data=reaction_data, reaction_scale=reaction_scale, reaction_no_data_color="lightgray", reaction_no_data_size=5) else: self.builder = NotebookBuilder(map_name=self.map_name, reaction_data=reaction_data, reaction_scale=reaction_scale, reaction_no_data_color="lightgray", reaction_no_data_size=5) display(self.builder.display_in_notebook())
def _init_builder(self, reaction_data, objective, variable): self.header_id = str(uuid4()).replace("-", "_") display( HTML(""" <p> %s <span id="objective-%s">%f</span></br> %s <span id="variable-%s">%f</span> </p> """ % (objective[0], self.header_id, objective[1], variable[0], self.header_id, variable[1]))) self.builder = NotebookBuilder(map_name=self.map_name, reaction_data=reaction_data, reaction_scale=[ dict(type='min', color="red", size=20), dict(type='median', color="grey", size=7), dict(type='max', color='green', size=20) ], **self.kwargs_for_escher) display(self.builder.display_in_notebook())