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

"Loading widgets" message should be replaced with an error when there is no widget support #2764

Closed
jasongrout opened this issue Jan 29, 2020 · 7 comments
Milestone

Comments

@jasongrout
Copy link
Member

In #2623, we saw that the code console (which does not support widgets) just continued to display a "Loading widgets" message instead of indicating that widgets were not supported.

I said:

That's a pretty unhelpful message. What is happening is that there is a global widget rendermime that immediately says things are loading, and later on the widget manager gets connected to the kernel and for that specific activity and starts rendering widgets for real. The console will get that global rendermime renderer. What it should do is, after a short time, go ahead and render the text version, or some sort of message saying the widgets are not supported in that activity. Or perhaps we don't need to wait if we know we are in a console.

@jasongrout
Copy link
Member Author

jasongrout commented Jan 29, 2020

Here is what it looks like now, with ipywidgets current master b3708e1
Screen Shot 2020-01-29 at 5 44 29 AM

@steveepreston
Copy link

still having this issue in 2024, in Kaggle TPU VM Notebooks

@martinRenou
Copy link
Member

ipywidgets is now supported in the JupyterLab console. @steveepreston I'd suggest updating to the latest ipywidgets if not done already! Otherwise I believe you're having another issue

@steveepreston
Copy link

steveepreston commented Aug 28, 2024

hey @martinRenou, thanks for attention.

issue still exists in TPU VM v3-8 Notebook env

I installed latest version (v8.1.5) via:
!pip install ipywidgets --upgrade

but I still getting this:
Loading widgets...

image

@martinRenou
Copy link
Member

I'm not sure this is a valid workflow. What is the ipywidgets version you have if you don't run !pip install ipywidgets --upgrade?

@steveepreston
Copy link

steveepreston commented Aug 28, 2024

the ipywidgets is not installed by default in Kaggle TPU VM env (No module named 'ipywidgets').

can you explain why you are not sure that this is a valid workflow?
just 3 lines of code to reproduce:

!pip install ipywidgets --upgrade

from transformers import BertTokenizer
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")

@martinRenou
Copy link
Member

martinRenou commented Aug 28, 2024

Do you see errors in the JavaScript console?

can you explain why you are not sure that this is a valid workflow?

I'm thinking that if ipywidgets was not installed in the kaggle deployment in the first place, then the JavaScript code for ipywidgets may be missing. I don't know kaggle though and I'm not sure about this workflow.

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

3 participants