jupyter/notebook

timeout error on a large notebook (Collapsible headings do not show up anymore)

Opened this issue · 5 comments

foice commented

Hi, as discussed in 822 I am stumbling in a problem of timeout when loading exetensions (Collapsible headings in my case) on load of a large notebook.

For small notebook the extension loads fine, only when the notebook has too many section to collapse I get a timeout error.

As suggested in 822 I have modified custom.js to add

 window.requirejs.config({
 waitseconds: 60,  // default is 30s
 });

but it did not help, tried to go bigger than 60 as well.

Any idea what to do to get Collapsible headings to work with this notebook?

This sounds like it may be an issue with the implementation of the extension. I suggest that an issue be posted on its repo vs. notebook.

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/master/src/jupyter_contrib_nbextensions/nbextensions/collapsible_headings

Is this the extension you're using?

Similar: #2030

foice commented

This sounds like it may be an issue with the implementation of the extension. I suggest that an issue be posted on its repo vs. notebook.

Thanks for your suggestion. The issue I was referring to, ipython-contrib/jupyter_contrib_nbextensions#822, is with the developer of the extension, who suggested to open an issue here.

Please let me know if I did not understand your message.

jcb91 commented

Hi @gnestor so after some debugging, I had this failure to load as a result of timeouts occur even for minimal nbextensions which just log a single line to console on loading, so concluded it was a more generic problem. It's a while since I looked at it though, so I may be wrong...

[edit: I'm the developer of the nbextension in question, in case that wasn't clear]

jcb91 commented

so, yes, I can get this to occur for the following nbextension:

define(function () {
  return {
    load_ipython_extension: function () { console.log('purdy!'); }
  };
});

given a large enough notebook, which for me seems to be ~ 500 cells (I used the notebook in this gist to make large numbers of cells).

notebook 4.3.0
Chrome 55.0.2883.87 m
on windows 8.1