Merge branch 'feature/ipympl' into 'master'
Updated ipywidgets tab See merge request caimira/caimira!430
This commit is contained in:
commit
7525bf8bcf
2 changed files with 3 additions and 4 deletions
|
|
@ -916,8 +916,7 @@ class ExpertApplication(Controller):
|
|||
self.comparison_view.widget,
|
||||
# self._debug_output,
|
||||
))
|
||||
for i, title in enumerate(['Current scenario', 'Scenario comparison', "Debug"]):
|
||||
self._results_tab.set_title(i, title)
|
||||
self._results_tab.titles = ['Current scenario', 'Scenario comparison', "Debug"]
|
||||
self.widget = widgets.HBox(
|
||||
children=(
|
||||
self.multi_model_view.widget,
|
||||
|
|
@ -1013,7 +1012,7 @@ class MultiModelView(View):
|
|||
self.add_tab(scenario_name, model)
|
||||
model_scenario_ids.append(id(model))
|
||||
tab_index = self._tab_model_ids.index(id(model))
|
||||
self.widget.set_title(tab_index, scenario_name)
|
||||
self.widget.titles = [scenario_name for (scenario_name, _) in model_scenarios]
|
||||
|
||||
# Any remaining model_scenario_ids are no longer needed, so remove
|
||||
# their tabs.
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -20,7 +20,7 @@ REQUIREMENTS: dict = {
|
|||
'core': [
|
||||
'dataclasses; python_version < "3.7"',
|
||||
'ipykernel',
|
||||
'ipympl != 0.8.0, != 0.8.1, != 0.9.2',
|
||||
'ipympl',
|
||||
'ipywidgets',
|
||||
'Jinja2',
|
||||
'loky',
|
||||
|
|
|
|||
Loading…
Reference in a new issue