<div dir="ltr"><div class="gmail_extra">Hi John,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 February 2015 at 08:43, John Omernik <span dir="ltr"><<a href="mailto:john@omernik.com" target="_blank">john@omernik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3tg" class="a3s" style="overflow:hidden">I am trying to use set_next_input to add two cells below the cell I am<br>
executing in.  I can do one cell no problem, but when I do the<br>
following code, only Hello2 gets added, there is only a single cell.<br>
How do set two subsequent cells in my currently running notebook (I<br>
don't want to save off and reopen or anything)</div></blockquote></div><br></div><div class="gmail_extra">set_next_input() originated with the console interface, where it doesn't really make sense to set anything beyond the next input. So it can currently add only one cell per user execution.<br><br></div><div class="gmail_extra">If you really need your code to modify the notebook document, you can have it display javascript to do so - but be careful that that JS doesn't get rerun every time you open the notebook.<br><br>Thomas<br></div></div>