def load_ipython_extension(ip):
    """
    Special method to automatically make PNG objects display inline.

    MAY 2017: everything happens in converter.subConverters
    """
    try:
        from matplotlib import pyplot as plt
        plt.ion()
        ip.run_line_magic('config', "InlineBackend.figure_format = 'retina'")
    except ImportError:
        pass
