Skip to content

Commit

Permalink
Update network_validation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jan 19, 2024
1 parent 2a88e00 commit 8871106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eliater/network_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def print_graph_falsifications(

def _is_notebook() -> bool:
try:
shell = get_ipython().__class__.__name__
shell = get_ipython().__class__.__name__ # type:ignore

Check warning on line 305 in src/eliater/network_validation.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/network_validation.py#L304-L305

Added lines #L304 - L305 were not covered by tests
if shell == "ZMQInteractiveShell":
return True # Jupyter notebook or qtconsole

Check warning on line 307 in src/eliater/network_validation.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/network_validation.py#L307

Added line #L307 was not covered by tests
elif shell == "TerminalInteractiveShell":
Expand Down

0 comments on commit 8871106

Please sign in to comment.