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

Request python package widgetsnbextension==4.0.9, ipywidgets==8.0.7, jupyterlab-widgets==3.0.8 for Data 8 #6269

Closed
jedwin3210 opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
package-request Package addition request for a hub

Comments

@jedwin3210
Copy link

Package Name

widgetsnbextension==4.0.9, ipywidgets==8.0.7, jupyterlab-widgets==3.0.8

Hub URL

data8.datahub.berkeley.edu

Course Name

Data 8, Jeremy Sanchez

Semester Details

Fall 2024

Installation Deadline

Not urgent, but when most convenient. The packages in "package name" fixed the issue of interactive graphs using ipywidgets.

@felder
Copy link
Contributor

felder commented Sep 26, 2024

This change is now live. Any running servers need to be restarted for the change to take effect.

Tested using an empty notebook with only the following cell. Verified that where there was once a JS error, there is now a slider.


import ipywidgets as widgets
from ipywidgets import interact

# Function to interact with
def f(x, y):
    print(f"x: {x}, y: {y}")

# Interact with x (slider) and y (dropdown)
interact(f, 
         x=widgets.IntSlider(min=0, max=10, step=1, value=5), 
         y=widgets.Dropdown(options=['Option 1', 'Option 2', 'Option 3'], value='Option 1'));

@felder felder closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package-request Package addition request for a hub
Projects
None yet
Development

No branches or pull requests

4 participants