Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2024
1 parent 5c866ae commit 0ec2969
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/iminuit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,13 +1688,14 @@ def is_positive_definite(m: ArrayLike) -> bool:

def is_jupyter() -> bool:
try:
from IPython import get_ipython
ip = get_ipython()
return ip.has_trait('kernel')
from IPython import get_ipython

ip = get_ipython()
return ip.has_trait("kernel")
except ImportError:
return False
return False
except AttributeError:
return False
return False
return False


Expand Down
3 changes: 1 addition & 2 deletions tests/test_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def f1(x, y):
def qtinteractive(m, plot=None, raise_on_exception=False, **kwargs):
from iminuit.qtwidget import make_widget

return make_widget(m, plot, kwargs, raise_on_exception,
run_event_loop=False)
return make_widget(m, plot, kwargs, raise_on_exception, run_event_loop=False)


@pytest.fixture
Expand Down

0 comments on commit 0ec2969

Please sign in to comment.