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

Avoid popping the custom widgets snippet for local runtimes #4525

Open
craigcitro-ant opened this issue Apr 23, 2024 · 5 comments
Open

Avoid popping the custom widgets snippet for local runtimes #4525

craigcitro-ant opened this issue Apr 23, 2024 · 5 comments
Labels

Comments

@craigcitro-ant
Copy link

Describe the current behavior

Currently, when using a local runtime, any use of ipywidgets>=8 will pop up the code snippets pane with a suggestion to enable custom widgets:
image

There are two issues here:

  1. enabling custom widgets won't help, as the root cause is that ipywidgets 8+ still isn't supported.
  2. orthogonal to the widgets issue, popping up a custom google.colab-using snippet for a local runtime doesn't help -- we still can't easily install that package. 😉

This issue only tracks (2), but I'm happy to file an issue for (1) if someone has cycles.
#3020 is the closest thing I could find to a tracking bug for (1), but it's closed; IMO would be worth a new bug tracking Pete's "... roll out proper support for ipywidgets>=8.0.0" bit in this comment.

Describe the expected behavior

Don't pop up a code snippet I can't use.

What web browser you are using

Chrome

Additional context

👋

@craigcitro-ant
Copy link
Author

oh, man, i'm falling apart here. repro steps!

  1. Start a local runtime
  2. python3 -m pip install ipywidgets>=8.0.0
  3. Run any tqdm-using snippet, eg:
    from tqdm.auto import tqdm
    
    for i in tqdm(range(3)):
      print(i)
    

@sagelywizard sagelywizard added the craig hi craig :) label Apr 24, 2024
@sagelywizard
Copy link
Member

Hi Craig! 👋🙂

Seems like it'd be good to have a tracking issue for (1) even if we don't immediately have the bandwidth.

For (2), I was able to repro. Found the relevant code in the UI. Not sure the best way to plumb the ipywidgets version through to the UI. Perhaps Katlyn knows, I'll ask.

@EvanWiederspan
Copy link

Tracking internally as b/337035308

@prhbrt
Copy link

prhbrt commented Jun 5, 2024

This seems to be a work-around:

pip3 install 'ipywidgets<8'

+restart notebook.

@EvanWiederspan
Copy link

The snippet should no longer pop up for local runtimes, will leave this open for the time being to make sure there's no follow up work needed once we eventually add ipywidgets 8 support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants