Skip to content

Commit 1390020

Browse files
committed
PLOT: rename use_widget to plot_widget [MPY-322]
1 parent 40597c7 commit 1390020

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

metview/bindings.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1080,12 +1080,12 @@ def merge(*args):
10801080
class Plot:
10811081
def __init__(self):
10821082
self.plot_to_jupyter = False
1083-
self.use_widget = True
1083+
self.plot_widget = True
10841084
self.jupyter_args = {}
10851085

10861086
def __call__(self, *args, **kwargs):
10871087
if self.plot_to_jupyter: # pragma: no cover
1088-
if self.use_widget:
1088+
if self.plot_widget:
10891089
return plot_to_notebook(args, **kwargs)
10901090
else:
10911091
return plot_to_notebook_return_image(args, **kwargs)
@@ -1240,9 +1240,9 @@ def setoutput(*args, **kwargs):
12401240
# test whether we're in the Jupyter environment
12411241
if get_ipython() is not None:
12421242
plot.plot_to_jupyter = True
1243-
plot.use_widget = kwargs.get("use_widget", True)
1244-
if "use_widget" in kwargs:
1245-
del kwargs["use_widget"]
1243+
plot.plot_widget = kwargs.get("plot_widget", True)
1244+
if "plot_widget" in kwargs:
1245+
del kwargs["plot_widget"]
12461246
plot.jupyter_args = kwargs
12471247
else:
12481248
print(

0 commit comments

Comments
 (0)