Skip to content

Commit a86019d

Browse files
committed
STY : PEP8 fixes
1 parent 0d9598e commit a86019d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/matplotlib/backends/backend_nbagg.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
from uuid import uuid4 as uuid
77

8-
from IPython.display import display,Javascript,HTML
8+
from IPython.display import display, Javascript, HTML
99
from IPython.kernel.comm import Comm
1010

1111
from matplotlib.figure import Figure
@@ -64,9 +64,11 @@ def connection_info():
6464
result = []
6565
for manager in pylab_helpers.Gcf.get_all_fig_managers():
6666
fig = manager.canvas.figure
67-
result.append('{} - {}'.format(fig.get_label() or "Figure {0}".format(manager.num),
67+
result.append('{} - {}'.format((fig.get_label() or
68+
"Figure {0}".format(manager.num)),
6869
manager.web_sockets))
69-
result.append('Figures pending show: ' + str(len(pylab_helpers.Gcf._activeQue)))
70+
result.append('Figures pending show: ' +
71+
str(len(pylab_helpers.Gcf._activeQue)))
7072
return '\n'.join(result)
7173

7274

@@ -83,7 +85,8 @@ class NavigationIPy(NavigationToolbar2WebAgg):
8385
}
8486

8587
# Use the standard toolbar items + download button
86-
toolitems = [(text, tooltip_text, _font_awesome_classes[image_file], name_of_method)
88+
toolitems = [(text, tooltip_text,
89+
_font_awesome_classes[image_file], name_of_method)
8790
for text, tooltip_text, image_file, name_of_method
8891
in NavigationToolbar2.toolitems
8992
if image_file in _font_awesome_classes]

0 commit comments

Comments
 (0)