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

Errors rendering ipywidgets #12890

Closed
roblourens opened this issue Feb 21, 2023 · 4 comments
Closed

Errors rendering ipywidgets #12890

roblourens opened this issue Feb 21, 2023 · 4 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

Testing #12875

  • Follow the steps to install ipywidgets 7.7.2 and run the "more complex" samples
  • Sometimes they work, and sometimes I see a lot of errors and the output is not rendered

The log output is really long, here are examples

image

image

image

Wondering whether I have an incompatible version of these sub-dependencies installed?

@roblourens
Copy link
Member Author

And for #12874, maybe this is related so I'll mention it here

  • Run "sample 3"
# Sample3
import numpy as np
from bqplot import pyplot as plt

# And creating some random data
size = 100
np.random.seed(0)
x_data = np.arange(size)
y_data = np.cumsum(np.random.randn(size)  * 100.0)
plt.figure(title='My First Plot')
plt.plot(x_data, y_data)
plt.show()
  • It correctly renders the output
  • Click ... and "Change Presentation"
  • Select the text option
  • Switch back to the rich renderer
  • It fails to render the rich output

image

Here's the text

Error rendering output item using 'jupyter-ipywidget-renderer'
Widget is not attached.

This error is printed a few times

image

@DonJayamanne
Copy link
Contributor

It correctly renders the output
Click ... and "Change Presentation"
Select the text option
Switch back to the rich renderer
It fails to render the rich output

Switching between text and then ipywidgets is not supported, you must be in ipywidget renderer always.
That is a known issue.

@DonJayamanne
Copy link
Contributor

@roblourens
Could you try the following

  • Create a new python environment
  • pip install ipywidgets==7.7.2 ipykernel k3d
  • Now try rendering the widget by running a cell

@DonJayamanne
Copy link
Contributor

@roblourens this should be fixed now, please re-test

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets labels Feb 22, 2023
@DonJayamanne DonJayamanne added this to the February 2023 milestone Feb 22, 2023
@DonJayamanne DonJayamanne added the author-verification-requested Issues potentially verifiable by issue author label Feb 22, 2023
@amunger amunger added the verified Verification succeeded label Feb 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants