dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

How to embed in an IPython notebook? #140

Closed olgabot closed 9 years ago

olgabot commented 9 years ago

EDIT: was an empty message

I'd like to embed these browsers in an IPython notebook for seamless data analysis without having to leave my favorite environment.

Here's what I've tried so far: http://nbviewer.ipython.org/gist/olgabot/af1c5e82f838703c94a5

I get this error that "Browser is not defined." I'm using Chrome Version 40.0.2214.111 (64-bit)

Javascript error adding output! ReferenceError: Browser is not defined See your browser Javascript console for more details.

olgabot commented 9 years ago

BTW, I used embedding examples from: https://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/

olgabot commented 9 years ago

and this is my javascript console output:

 Default extension for cell metadata editing loaded.
rawcell.js?v=b2fd7b68ffaa1a0743822566e51d51bb:87 Raw Cell Format toolbar preset loaded.
slideshow.js?v=e0de0a8feb75f511d163c5950b465e86:48 Slideshow extension for metadata editing loaded.
main.js?v=29279aa747f4ab954902e8ee192bdc1a:29 patching CM for undefined indent
kernel.js?v=4f7e3edf038579ed584b87f5c10a24ad:124 Kernel started:  22e6340b-7654-463a-94d2-d7375602901f
kernel.js?v=4f7e3edf038579ed584b87f5c10a24ad:151 Starting WebSockets: ws://localhost:7700/api/kernels/22e6340b-7654-463a-94d2-d7375602901f
outputarea.js?v=b7a027e8d15c522578a4142b8342789f:566 SyntaxError: Unexpected token ILLEGALmessage: "Unexpected token ILLEGAL"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error
outputarea.js?v=b7a027e8d15c522578a4142b8342789f:566 SyntaxError: Unexpected token ILLEGALmessage: "Unexpected token ILLEGAL"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error
outputarea.js?v=b7a027e8d15c522578a4142b8342789f:396 ReferenceError: Browser is not definedmessage: "Browser is not defined"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error
backbone-min.map:1 GET http://localhost:7700/static/components/backbone/backbone-min.map 404 (Not Found)
underscore-min.map:1 GET http://localhost:7700/static/components/underscore/underscore-min.map 404 (Not Found)
olgabot commented 9 years ago

SEems to work now with IPython 3!