OK, I can confirm that if I execute this code:

%%javascript
Jupyter.notebook.set_autosave_interval(0);

then I do see the "Autosave disabled" message appear. That's a good sign. 

The question is now, how should the custom.js script look like? This is the 
original one:
console.log("Loading autosave disable script");
require(['base/js/namespace', 'base/js/events'], function (IPython, events) 
{
  events.on("notebook_loaded.Notebook", function () {
    IPython.notebook.minimum_autosave_interval = 0; // disable autosave

  });
});

At the very minimum, IPython needs to be changed to Jupyter. Also, it's not 
minimum_autosave_interval, it's autosave_interval. So I tried this:
console.log("Loading autosave disable script");
require(['base/js/namespace', 'base/js/events'], function (Jupyter, events) 
{
  events.on("notebook_loaded.Notebook", function () {
    Jupyter.notebook.autosave_interval = 0; // disable autosave
  });
});

Now when I open a new notebook I do see the "autosave disabled" message 
popping up. So it seem it's finally working. I need some more time to be 
sure.
Thanks Matthias and everybody who helped.

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/4ed657d9-335d-49a7-8406-bc650ea8ec8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to