diff --git a/prolif/plotting/network.py b/prolif/plotting/network.py index cfbc6a1..c9e2e84 100644 --- a/prolif/plotting/network.py +++ b/prolif/plotting/network.py @@ -12,6 +12,7 @@ :members: """ + import json import re import warnings @@ -791,7 +792,9 @@ def _get_legend(self, height="90px"): }); legend.appendChild(div_residues); legend.appendChild(div_interactions); - """ % dict(div_id="networklegend", buttons=json.dumps(buttons)) + """ % dict( + div_id="networklegend", buttons=json.dumps(buttons) + ) @requires("IPython.display") def display(self, **kwargs):