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

IPyWidgets not displaying when using a Python 2 kernel #419

Closed
ojarjur opened this issue Mar 13, 2018 · 1 comment
Closed

IPyWidgets not displaying when using a Python 2 kernel #419

ojarjur opened this issue Mar 13, 2018 · 1 comment

Comments

@ojarjur
Copy link
Contributor

ojarjur commented Mar 13, 2018

When trying to use ipywidgets in a notebook with a Python 2 kernel, the widget does not display.

For example, if I run the following code cell:

import ipywidgets as widgets
widgets.IntSlider()

... then the following error message is output:

Failed to display Jupyter Widget of type IntSlider.

If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading. If this message persists, it likely means that the widgets JavaScript library is either not installed or not enabled. See the Jupyter Widgets Documentation for setup instructions.

If you're reading this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesn't currently support widgets.

Digging in, I found the following error message in the Javascript console: Timeout while trying to cross validate the widget frontend and backend versions.

Digging in a little further, it looks like the version of ipywidgets installed in the python 2 environment is "7.1.2", whereas in the python 3 environment it is "6.0.1".

At the very least, we should make the versions match. If that does not resolve the issue, then we should dig deeper and figure out what else is wrong.

@ojarjur
Copy link
Contributor Author

ojarjur commented Mar 14, 2018

It looks like this was user error on my part. I had installed a library in the Python 2 environment that explicitly required ipywidgets>=7.0*

We may want to consider upgrading the version of ipywidgets we install by default, but this is not a bug in Kubeflow.

@ojarjur ojarjur closed this as completed Mar 14, 2018
yanniszark pushed a commit to arrikto/kubeflow that referenced this issue Nov 1, 2019
…kubeflow#419)

* Kustomize 3.2.0 API Changes: Add go.mod

* Kustomize 3.2.0 API Changes: Implement code review

* Kustomize 3.2.0 API Changes: Rerun generate

During test of generation outside GOPATH, discovered that some
tests had not be regenerated.
yanniszark pushed a commit to arrikto/kubeflow that referenced this issue Feb 15, 2021
* Add NAS team in reviewers

* Update reviewers
elenzio9 pushed a commit to arrikto/kubeflow that referenced this issue Oct 31, 2022
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

1 participant