[IPython-dev] tracking nbconvert-generated images in version control
Matthias BUSSONNIER
bussonniermatthias at gmail.com
Tue Apr 22 05:16:24 EDT 2014
Le 19 avr. 2014 à 22:12, Greg Wilson a écrit :
> 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?
yes, that's probably doable.
It can also probably go into plot metadata, on the output level.
We can probably have something on python side that does it and hook into display protocol.
--
M
>
> Thx,
> G
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list