Skip to content

Commit

Permalink
refactor: line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Dec 13, 2023
1 parent a8e9ebb commit c3a805b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def plot_type_coupled_change(new_plot_type, target_data_selection):

def unlink_relink(attribute: str):
"""
Wrapper function to unlink widgets to perform edits and re-link them on completion.
Used as a decorator on class methods. The class must have an attribute containing an
ipywidgets/traitlets link object.
Wrapper function to unlink widgets to perform edits and re-link them on
completion. Used as a decorator on class methods. The class must have an
attribute containing an ipywidgets/traitlets link object.
Parameters
----------
Expand Down Expand Up @@ -600,7 +600,8 @@ def _add_figure(b, widgets, data, scale=0.95, dpi=96):
with widgets['figs_output']:
display(widgets['figs_tabs'])

widgets['figs_tabs'].children = [s for s in widgets['figs_tabs'].children] + [fig_outputs]
widgets['figs_tabs'].children = \
[s for s in widgets['figs_tabs'].children] + [fig_outputs]
widgets['figs_tabs'].set_title(n_tabs, _idx2figname(fig_idx))

with fig_outputs:
Expand Down

0 comments on commit c3a805b

Please sign in to comment.