[IPython-dev] tracking nbconvert-generated images in version control

Greg Wilson gvwilson at third-bit.com
Sat Apr 19 16:12:59 EDT 2014


On 2014-04-19 11:07 AM, Matthias BUSSONNIER wrote:
> Le 19 avr. 2014 à 16:59, Greg Wilson a écrit :
>
>> Hi Nathan,
>>> You could modify Jekyll to do this operation.  You wouldn't need to
>>> worry about converting the notebook to HTML, I think, so your job
>>> would be a bit simpler than what RunNotebook does.
>> Unfortunately, GitHub won't run install or run any hacks we make to Jekyll.
> I can try to hack nbconvert to name the figure by their hash.
> Hence same figure would have same hash across conversions.
> (supposing the generated figures are identical of course)
>
> What do you think ?
What about allowing users to attach names to plots (or to the code that 
generates them), then using that name for the persisted file? Names 
could go in cell metadata, and could then also serve as anchors for linking?

Thx,
G



More information about the IPython-dev mailing list