from .base import (
    Renderer, Viewable, LandmarkableViewable, viewwrapper, Menpo3dErrorMessage,
    PointGraphViewer2d, LandmarkViewer2d, ImageViewer2d, ImageViewer,
    AlignmentViewer2d, GraphPlotter, view_image_landmarks)
from .text_utils import progress_bar_str, print_dynamic, print_bytes
from .widgets import (visualize_pointclouds, visualize_landmarkgroups,
                      visualize_landmarks, visualize_images,
                      save_matplotlib_figure, features_selection)
from .viewmatplotlib import MatplotlibRenderer

from .base import (
    Renderer, Viewable, LandmarkableViewable, viewwrapper, Menpo3dErrorMessage,
    PointGraphViewer2d, LandmarkViewer2d, ImageViewer2d, ImageViewer,
    AlignmentViewer2d, GraphPlotter, view_image_landmarks)
from .text_utils import progress_bar_str, print_dynamic, print_bytes
# If IPython is not installed, then access to the widgets should be blocked.
try:
    from .widgets import (visualize_pointclouds, visualize_landmarkgroups,
                          visualize_landmarks, visualize_images,
                          save_matplotlib_figure, features_selection)
except ImportError:
    pass
from .viewmatplotlib import MatplotlibRenderer

allow import menpo even without ipython installed