<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 1:47 AM, Tony.Hirst <span dir="ltr"><<a href="mailto:tony.hirst@open.ac.uk" target="_blank">tony.hirst@open.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
>I have a toolbar button extension that zips up HTML  and ipynb versions<br>
>of the current notebook into a single zip file, but I would also like to<br>
>force the notebook to save and checkpoint when I initiate this action.<br>
>What do I have to call to force that action?<br>
</span>----<br>
><br>
>IPython.notebook.save_checkpoint()<br>
><br>
>-MinRK<br>
<br>
<br>
Thanks...<br>
<br>
I've also noticed that the js customisations don't always run, I think<br>
because of a reace between a call on $ and jquery loading? </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> I'm using<br>
chrome on os/x - and guess this is a cache issue?</blockquote><div><br></div><div><div><br class="">custom.js is always run, regardless of caching. If there's a race, you probably need to make sure you express your dependencies with `require(['jquery', 'etc.'], function ($) { ... })` to ensure dependencies are loaded before you try to use them.</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> (I was also wondering<br>
whether the notebook load event is guaranteed to fire or can cacheing<br>
break that too?<br></blockquote><div><br></div><div>No, the load event will always fire and will not be affected by caching.</div><div><br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
tony<br>
<br>
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div></div>