sphinx_nbexamples/__init__.py
def copy_thumbnail_figure(self):
        """The integer of the thumbnail figure"""
        ret = None
        if self._thumbnail_figure is not None:
            if not isstring(self._thumbnail_figure):
                ret = self._thumbnail_figure
            else:
                ret = osp.join(osp.dirname(self.outfile),
                               osp.basename(self._thumbnail_figure))
                copyfile(self._thumbnail_figure, ret)
                return ret
        elif hasattr(self.nb.metadata, 'thumbnail_figure'):
            if not isstring(self.nb.metadata.thumbnail_figure):
                ret = self.nb.metadata.thumbnail_figure
            else:
                ret = osp.join(osp.dirname(self.outfile), 'images',
                               osp.basename(self.nb.metadata.thumbnail_figure))
                copyfile(osp.join(osp.dirname(self.infile),
                                  self.nb.metadata.thumbnail_figure),
                         ret)
        return ret
def copy_thumbnail_figure(self):
        """The integer of the thumbnail figure"""
        ret = None
        if self._thumbnail_figure is not None:
            if not isstring(self._thumbnail_figure):
                ret = self._thumbnail_figure
            else:
                ret = osp.join(osp.dirname(self.outfile),
                               osp.basename(self._thumbnail_figure))
                copyfile(self._thumbnail_figure, ret)
                return ret
        elif hasattr(self.nb.metadata, 'thumbnail_figure'):
            if not isstring(self.nb.metadata.thumbnail_figure):
                ret = self.nb.metadata.thumbnail_figure
            else:
                ret = osp.join(osp.dirname(self.outfile), 'images',
                               osp.basename(self.nb.metadata.thumbnail_figure))
                copyfile(osp.join(osp.dirname(self.infile),
                                  self.nb.metadata.thumbnail_figure),
                         ret)
        return ret
The integer of the thumbnail figure