<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Just an idea.. But container is not defined in the scope where it's called.</div><div><br>On Jul 14, 2013, at 3:25 AM, TARUN GABA <<a href="mailto:tarun.gaba7@gmail.com">tarun.gaba7@gmail.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div>Hi,<div>I am trying to render some webgls in IPython notebook,</div><div>My code is on these lines ..</div><div><br></div><div>function Canvas(arg) { this.initialize = function() { container.show(); ..... }}</div>
<div><br>
</div><div>then I call </div><div>var new_canvas = new Canvas(arg);</div><div>new_canvas.initialize();</div><div><br></div><div>I get this error ..</div><div><span style="color:rgb(255,0,0);font-family:'dejavu sans mono',monospace;font-size:11px;line-height:13px;background-color:rgb(255,255,255)">ReferenceError: container is not defined</span><span class="object-info-state-note" title="Object state below is captured upon first expansion" style="display:inline-block;width:11px;height:11px;background-color:rgb(179,203,247);color:white;text-align:center;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;line-height:13px;margin:0px 6px;font-size:9px;font-family:'dejavu sans mono',monospace"></span></div>
<div><br></div><div>Any Ideas what might be wrong.</div><div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>IPython-dev mailing list</span><br><span><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a></span><br>
<span><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></span><br></div></blockquote></body></html>