Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript exceptions on widget updates #6

Closed
dcjones opened this issue Aug 19, 2014 · 1 comment
Closed

Javascript exceptions on widget updates #6

dcjones opened this issue Aug 19, 2014 · 1 comment

Comments

@dcjones
Copy link
Contributor

dcjones commented Aug 19, 2014

Maybe I just have the wrong version of something, but I'm getting this now in IJulia.

using React, Interact

x = Input(123)

push!(x, 321)
Exception in Comm callback TypeError {stack: (...), message: "Cannot read property 'selector' of undefined"} TypeError: Cannot read property 'selector' of undefined
    at new OutputArea (http:https://localhost:8998/static/notebook/js/outputarea.js:22:32)
    at HTMLDivElement.eval (eval at <anonymous> (http:https://localhost:8998/static/components/jquery/jquery.min.js:4:4231), <anonymous>:25:17)
    at Function.x.extend.each (http:https://localhost:8998/static/components/jquery/jquery.min.js:4:4575)
    at x.fn.x.each (http:https://localhost:8998/static/components/jquery/jquery.min.js:4:1626)
    at eval (eval at <anonymous> (http:https://localhost:8998/static/components/jquery/jquery.min.js:4:4231), <anonymous>:21:36)
    at Comm._maybe_callback (http:https://localhost:8998/static/services/kernels/js/comm.js:167:17)
    at Comm.handle_msg (http:https://localhost:8998/static/services/kernels/js/comm.js:175:14)
    at CommManager.comm_msg (http:https://localhost:8998/static/services/kernels/js/comm.js:106:18)
    at x.isFunction.i (http:https://localhost:8998/static/components/jquery/jquery.min.js:4:5488)
    at Kernel._handle_iopub_message (http:https://localhost:8998/static/services/kernels/js/kernel.js:589:13) 

And I have to re-eval x to see that the value was updated.

@shashi
Copy link
Owner

shashi commented Aug 19, 2014

Okay there have been changes to IPython's OutputArea API, looking into this (I was not on IPython master for quite some time). This stuff is internal to IPython, hence we cannot be sure it won't break again. :|

I can do something similar to ipython/ipython#6066. This comes with the trade-off that the values don't get saved in the notebook, even if you reload the notebook while the kernel is still running.

@shashi shashi closed this as completed in 0f1d5c0 Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants