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
Couldn't add children widget to box when rendering widgets #233
Comments
Hmm, not exactly sure what is going on there. Can I look at the custom On Fri, Nov 6, 2015 at 8:20 PM, Alejandro Guerrero Gonzalez <
Brian E. Granger |
Sure thing. It's here: https://github.com/jupyter-incubator/sparkmagic/blob/master/remotespark/pysparkkernel/pysparkkernel.py |
I don't think this is your custom kernel code. Some things to check:
On Fri, Nov 6, 2015 at 10:48 PM, Alejandro Guerrero Gonzalez <
Brian E. Granger |
Strange, I thought I had responded to this. I just wanted to echo @ellisonbg 's suggestion that you should double check if you are running two versions of Python or not, and if so, that the versions of ipywidgets match on both. The symptoms you post point to that. Background: ipywidgets is not only a package used by you in Python, but it's also a package used by the webserver to host static content. It's crtitical that both run the same version of ipywidgets because the static content hosted by the webserver is designed to communicate with the code you run in the kernel. |
Thanks for your answers @ellisonbg and @jdfreder. |
So I've been looking at this all night and cannot figure out what's going on... Both kernels are using the same Python version, running on the same kernel. I installed ipywidgets from master and cleared the browser. Now, I get this error message on first execution:
As far as I know I only have Anaconda's Python 2.7 (Python 2.7.10 |Anaconda 2.3.0 (x86_64)) and one version of ipywidgets installed ('4.2.0.dev'). I did some searches and found this: ipython/ipython#6493 @ellisonbg How can I verify if Thanks in advance! |
A few questions:
On Thu, Nov 19, 2015 at 2:33 AM, Alejandro Guerrero Gonzalez <
Brian E. Granger |
Visitors from the future: My issue was I had installed ipywidgets via pip with a conda installation and there was indeed a version mismatch between the conda and pip ipywidget installation. When I resolved the inconsistency, issue went away. Thanks for the help everyone! |
Hi, I have an equivalent problem. Whenever I try to use an ipywidgets object in a notebook, I get the error 'Could not open comm -- Error: Class ipython.widget not found in registry' in the web console. It seems to be related I checked every point you mentioned, especially the inconsistency between pip and conda, but I still can't figure out what is wrong. Ex : from ipywidgets import IntSlider returns nothing, and prints out the aforementioned error |
Hi,
I don't know if there is a bug in ipywidgets or if there's an opportunity to refactor IPythonKernel. I'd appreciate your comments.
I recently created a kernel that inherits directly from IPythonKernel:
class MyKernel(IPythonKernel)
This
MyKernel
class is a very thin layer over theIPythonKernel
.On this kernel, if the user tries to display a Widget in
MyKernel
, they'll get a Javascript error that I am having a very hard time debugging. Message from browser console below. Notice that the widget tabs omit the content of the widget children:When i run the same piece of code that renders the same widget on the real IPythonKernel, it looks like this, with children displaying correctly:
Any help would be appreciated!
Thanks!
Javascript error message:
ping @ellisonbg
The text was updated successfully, but these errors were encountered: