[IPython-dev] notebook hangs with latest master
Zoltán Vörös
zvoros at gmail.com
Tue Nov 4 08:35:31 EST 2014
On 11/04/2014 01:42 PM, Matthias Bussonnier wrote:
>
> Loaded extension: toc :8888/static/base/js/utils.js:26
> <link type="text/css" rel="stylesheet" href="/nbextensions/toc.css"> toc.js:147
> Default extension for cell metadata editing loaded. default.js:48
> Raw Cell Format toolbar preset loaded. rawcell.js:82
> Slideshow extension for metadata editing loaded. slideshow.js:43
> Ignoring untrusted image/svg+xml output. outputarea.js:518
> Uncaught ReferenceError: nb is not defined notebook.js:2198
> This one is weird, what's the line of notebook.js you have line 2198 (and context if possible)
Actually, this is the part of the code that checks for the notebook version
if (orig_nbformat !== undefined && nbmodel.nbformat !== orig_nbformat) {
var src;
if (nb.nbformat > nb.orig_nbformat) {
src = " an older notebook format ";
} else {
src = " a newer notebook format ";
}
I attach a minimal example that fails loading.
>
>> Failed to load resource: the server responded with a status of 404 (Not
>> Found) http://localhost:8888/static/components/codemirror/lib/codemirror
>> Uncaught Error: Script error for:
>> /static/components/codemirror/lib/codemirror
>> http://requirejs.org/docs/errors.html#scripterror require.js:141
>> Failed to load resource: the server responded with a status of 404 (Not
>> Found)
> Ok, so this is probably one of the problem, try deactivation the fold code add-on in your custom.js,
> probably an extension that do not work with code mirror 4.
I have removed the code from profile/static/custom/, and the error is
not there any more. OK, so you would classify this as a glitch in
codemirror. I will try to check this. I'll send an update, once I have
more on this.
Cheers,
Zoltán
-------------- next part --------------
{
"metadata": {
"name": "",
"signature": "sha256:195a4ce45f51f1ab5469174e4f122ed532819c3cbde75b66354f19a01284366e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"%%javascript\n",
"var p = IPython.notebook.ncells()\n",
"alert(p)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"javascript": [
"var p = IPython.notebook.ncells()\n",
"alert(p)"
],
"metadata": {},
"output_type": "display_data",
"text": [
"<IPython.core.display.Javascript at 0x304edd0>"
]
}
],
"prompt_number": 8
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
More information about the IPython-dev
mailing list