No this was a quick workaround because there was an issue with several
figures by cell.

We might want to change fig numbering to
CellNumber-figNumber ... Or any other solution.

Le mardi 21 mai 2013, Jonathan Frederic a écrit :

> In nbconvert/transformers/base.py:
>
> > +        overwrite cell_transform method instead.
> > +
> > +        Parameters
> > +        ----------
> > +        nb : NotebookNode
> > +            Notebook being converted
> > +        resources : dictionary
> > +            Additional resources used in the conversion process.  Allows
> > +            transformers to pass variables into the Jinja engine.
> > +        """
> > +        try :
> > +            for worksheet in nb.worksheets :
> > +                for index, cell in enumerate(worksheet.cells):
> > +
> > +                    #TODO: Why are we multiplying the index by 100 here???
> > +                    worksheet.cells[index], resources = self.cell_transform(cell, resources, 100*index)
>
> @Carreau <https://github.com/Carreau> , is this intended to allow the
> cell transform to have a max of up to 100 children to each parent index? If
> so, is that limit enforced elsewhere? I couldn't seem to find any
> additional information in the original code regarding this coefficient of
> 100. [image: :see_no_evil:]
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ipython/nbconvert/pull/137/files#r4312223>
> .
>