[IPython-dev] Odd notebook file that can't be loaded.

MinRK benjaminrk at gmail.com
Sun Jan 8 02:14:04 EST 2012


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.

-MinRK

On Sat, Jan 7, 2012 at 22:56, Fernando Perez <fperez.net at gmail.com> wrote:

> Hi all,
>
> any idea why this notebook file can't be opened?  I was trying to
> answer a question on the user list about the execution of js code that
> calls back into python, and while the code here worked fine while
> running it, the moment I saved it and tried to reopen it, it wouldn't
> open at all, wedging the notebook.  I'm a bit puzzled...
>
> Cheers,
>
> f
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120107/5d3d572b/attachment.html>


More information about the IPython-dev mailing list