Skip to content

Commit dc7d7c9

Browse files
committed
Clean up
1 parent cc5cbd4 commit dc7d7c9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/iminuit/minuit.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,6 @@ def interactive(
23492349
"""
23502350
is_jupyter = True
23512351
try:
2352-
from IPython import get_ipython
23532352
if (get_ipython().__class__.__name__ == "ZMQInteractiveShell"
23542353
and "IPKernelApp" in get_ipython().config):
23552354
is_jupyter = True
@@ -2360,14 +2359,11 @@ def interactive(
23602359

23612360
if is_jupyter:
23622361
from iminuit.ipywidget import make_widget
2363-
2364-
plot = self._visualize(plot)
2365-
return make_widget(self, plot, kwargs, raise_on_exception)
23662362
else:
23672363
from iminuit.qtwidget import make_widget
23682364

2369-
plot = self._visualize(plot)
2370-
return make_widget(self, plot, kwargs, raise_on_exception)
2365+
plot = self._visualize(plot)
2366+
return make_widget(self, plot, kwargs, raise_on_exception)
23712367

23722368
def _free_parameters(self) -> Set[str]:
23732369
return set(mp.name for mp in self._last_state if not mp.is_fixed)

0 commit comments

Comments
 (0)