From 3753bf7f2ee4ae90c459707e73df84b1d43384a0 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Wed, 27 Jan 2016 13:22:26 -0800 Subject: [PATCH] Add debug statement for debug. It might help to determine why require is sometime not a function. --- notebook/static/notebook/js/kernelselector.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/notebook/static/notebook/js/kernelselector.js b/notebook/static/notebook/js/kernelselector.js index f83f9eda6..c2a002242 100644 --- a/notebook/static/notebook/js/kernelselector.js +++ b/notebook/static/notebook/js/kernelselector.js @@ -148,6 +148,14 @@ define([ // load kernel js if (ks.resources['kernel.js']) { + + // Debug added for Notebook 4.2, please remove at some point in the + // future if the following does not append anymore when kernels + // have kernel.js + // + // > Uncaught (in promise) TypeError: require is not a function + // + console.info('Dynamically requiring kernel.js, `require` is ', require); require([ks.resources['kernel.js']], function (kernel_mod) { if (kernel_mod && kernel_mod.onload) {