Your script in the markdown cell is being executed before the kernel exists, and thus fails ('null has no execute' message in js console).  Since this raises an error, the javascript execution that was loading the notebook (which ultimately caused your javascript to execute) halts at this point, failing to finish loading the notebook.  I don't know if we can protect against this sort of thing, but we should if we can.  If you write the code so it can't raise (check for existence, etc.), then it should be safe.  You may need to put the execute on a timeout, to allow it to run after the kernel connection is established.<div>

<br></div><div>-MinRK<br><br><div class="gmail_quote">On Sat, Jan 7, 2012 at 22:56, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi all,<br>
<br>
any idea why this notebook file can't be opened?  I was trying to<br>
answer a question on the user list about the execution of js code that<br>
calls back into python, and while the code here worked fine while<br>
running it, the moment I saved it and tried to reopen it, it wouldn't<br>
open at all, wedging the notebook.  I'm a bit puzzled...<br>
<br>
Cheers,<br>
<br>
f<br>
<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>
<br></blockquote></div><br></div>