Trouble getting master to run in a notebook

Hi all,

All of a sudden today I’m unable to build bokeh and have it run in the notebook.

When I try to run output_notebook(), I see
BokehJS successfully loaded.

Javascript error adding output!

TypeError: e is undefined

See your browser Javascript console for more details.

and then, not surprisingly, when I try to show a plot, I see

Javascript error adding output!

ReferenceError: Bokeh is not defined

See your browser Javascript console for more details.

I’m not entirely sure when the last time this worked was but certainly not very long ago. I have tried blowing everything away and am seeing the same. I am also seeing, intermittently, the error we are getting on travis:

Done. Phantomjs binary available at /home/bird/Dev/bokeh/bokeh/bokehjs/node_modules/phantomjs/lib/phantom/bin/phantomjs
npm ERR! cb() never called!
npm ERR! not ok code 0

The console from ipython notebook isn’t telling me much, but maybe someone else will know:

“Kernel: kernel_ready (4e9b16a5-0554-4b44-bbe0-7543e2c8ed67)” kernel.js:98:13
TypeError: e is undefined
Stack trace:
[38]</o@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17646
[38]</r<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17838
[38]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17753
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
r/<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:321
[30]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:23:27186
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
r/<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:321
[1]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:842
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
t@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:437
@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:1
.globalEval@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:4:4231
.domManip@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:5:21389
.append@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:5:18980
OutputArea.prototype._safe_append@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:414:13
OutputArea.prototype.append_display_data@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:535:13
OutputArea.prototype.append_output@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:320:13
OutputArea.prototype.handle_output@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:234:9
CodeCell.prototype.get_callbacks/<.iopub.output@http://localhost:8888/static/notebook/js/codecell.js?v=20150809034836:456:21
Kernel.prototype._handle_output_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:1012:13
.proxy/i@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:4:5486
Kernel.prototype._handle_iopub_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:1039:20
Kernel.prototype._finish_ws_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:874:1
Kernel.prototype._handle_ws_message/this._msg_queue<@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:864:39

In case it’s useful, my conda env, pip freeze, and npm ls are here: http://pastebin.com/DShBzgBr

To get my dev environment setup, I followed the instructions from here: https://github.com/bokeh/bokeh/issues/2463#issuecomment-115752427

I repeat here what I posted yesterday morning (for completeness):

@birdsarah, after looking at it this morning… the problem seems to be introduced by this PR:

PR #2671: Clean up gulp source mapping by mistakevin in bokeh/bokeh on GitHub


@birdsarah, if you want to build previous versions of bokehjs before that point (PR2671), you need to remove your /build folder, otherwise you will find an error in the building process…

···

On Sat, Aug 8, 2015 at 11:00 PM Sarah Bird [email protected] wrote:

Hi all,

All of a sudden today I’m unable to build bokeh and have it run in the notebook.

When I try to run output_notebook(), I see
BokehJS successfully loaded.

Javascript error adding output!

TypeError: e is undefined

See your browser Javascript console for more details.

and then, not surprisingly, when I try to show a plot, I see

Javascript error adding output!

ReferenceError: Bokeh is not defined

See your browser Javascript console for more details.

I’m not entirely sure when the last time this worked was but certainly not very long ago. I have tried blowing everything away and am seeing the same. I am also seeing, intermittently, the error we are getting on travis:

Done. Phantomjs binary available at /home/bird/Dev/bokeh/bokeh/bokehjs/node_modules/phantomjs/lib/phantom/bin/phantomjs
npm ERR! cb() never called!
npm ERR! not ok code 0

The console from ipython notebook isn’t telling me much, but maybe someone else will know:

“Kernel: kernel_ready (4e9b16a5-0554-4b44-bbe0-7543e2c8ed67)” kernel.js:98:13
TypeError: e is undefined
Stack trace:
[38]</o@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17646
[38]</r<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17838
[38]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:24:17753
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
r/<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:321
[30]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:23:27186
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
r/<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:321
[1]<@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:842
r@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:262
t@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:437
@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836 line 4 > eval:2:1
.globalEval@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:4:4231
.domManip@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:5:21389
.append@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:5:18980
OutputArea.prototype._safe_append@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:414:13
OutputArea.prototype.append_display_data@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:535:13
OutputArea.prototype.append_output@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:320:13
OutputArea.prototype.handle_output@http://localhost:8888/static/notebook/js/outputarea.js?v=20150809034836:234:9
CodeCell.prototype.get_callbacks/<.iopub.output@http://localhost:8888/static/notebook/js/codecell.js?v=20150809034836:456:21
Kernel.prototype._handle_output_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:1012:13
.proxy/i@http://localhost:8888/static/components/jquery/jquery.min.js?v=20150809034836:4:5486
Kernel.prototype._handle_iopub_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:1039:20
Kernel.prototype._finish_ws_message@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:874:1
Kernel.prototype._handle_ws_message/this._msg_queue<@http://localhost:8888/static/services/kernels/kernel.js?v=20150809034836:864:39

In case it’s useful, my conda env, pip freeze, and npm ls are here: http://pastebin.com/DShBzgBr

To get my dev environment setup, I followed the instructions from here: https://github.com/bokeh/bokeh/issues/2463#issuecomment-115752427

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” 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/a/continuum.io/d/msgid/bokeh/CA%2BEr%2BdRqz7v8id7K4ovj26CrX-ok4hHC5VkJDs9JDONZxU_peA%40mail.gmail.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.