Failed to run Python script with Conda
Question: I tried to install menpo like in [this
tutorial](http://www.menpo.org/installation/windows/index.html). After that I
installed menpofit, menpo3d and menpodetect:

> conda install -c menpo menpofit
>
> conda install -c menpo menpo3d
>
> conda install -c menpo menpodetect

Next I ran this python script from CMD(_python testPy.py_):

    
    
    import menpo.io as mio
    from menpo.visualize import visualize_images
    
    images = list(mio.import_images('A:/img/*.png'))
    visualize_images(images)
    

And got this output: ![enter image description
here](http://i.stack.imgur.com/goBBx.png) What am I doing wrong and how I can
fix it?


Answer: It seems that `visualize_images` is meant to be used from `ipython-notebook`.
Calling it in a regular `python` script does not seem to be intended by the
authors.

See also the example in the [`Visualizing
Objects`](http://menpo.readthedocs.org/en/latest/userguide/visualization.html#visualizing-
a-list-of-2d-images) section of the docs:

    
    
    %matplotlib inline
    import menpo.io as mio
    from menpo.visualize import visualize_images
    
    # import_images is a generator, so we must exhaust the generator before
    # we can visualize the list. This is because the widget allows you to
    # jump arbitrarily around the list, which cannot be done with generators.
    images = list(mio.import_images('./path/to/images/*.jpg'))
    visualize_images(images)
    

