Skip to content

Commit 6070de4

Browse files
committed
fix: defer ipython to the function body as it is not a dependency
1 parent 843897b commit 6070de4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

niworkflows/viz/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
32
# vi: set ft=python sts=4 ts=4 sw=4 et:
4-
from __future__ import absolute_import, division, print_function, unicode_literals
5-
63
from .plots import plot_carpet
74
from .utils import SVGNS
85

niworkflows/viz/notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import numpy as np
44
import nibabel as nb
55
from .utils import compose_view, plot_registration, cuts_from_bbox
6-
from IPython.display import SVG, display as _disp
76

87

98
def display(
@@ -15,6 +14,7 @@ def display(
1514
moving_label="M",
1615
):
1716
"""Plot the flickering panels to show a registration process."""
17+
from IPython.display import SVG, display as _disp
1818
if isinstance(fixed_image, (str, Path)):
1919
fixed_image = nb.load(str(fixed_image))
2020
if isinstance(moving_image, (str, Path)):

0 commit comments

Comments
 (0)