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

name 'HTML' is not defined #32

Closed
tuzhucheng opened this issue May 1, 2019 · 4 comments
Closed

name 'HTML' is not defined #32

tuzhucheng opened this issue May 1, 2019 · 4 comments

Comments

@tuzhucheng
Copy link

When I'm trying to run the following from fast.ai v3 lesson 3 IMDB notebook:

data_lm = TextDataBunch.from_csv(path, 'texts.csv')

I get the following error:

/opt/conda/lib/python3.7/site-packages/fastprogress/fastprogress.py in on_iter_begin(self)
    160 
    161     def on_iter_begin(self):
--> 162         if self.display: self.out = display(HTML(self.progress), display_id=True)
    163         self.is_active=True
    164 

NameError: name 'HTML' is not defined

Here are the library versions:

  • fastai-1.0.52
  • fastprogress-0.1.21
@sgugger
Copy link
Contributor

sgugger commented May 1, 2019

That is really weird. In which environment are you? Normally you should have seen a warning if HTML wasn't properly imported.

@tuzhucheng
Copy link
Author

tuzhucheng commented May 2, 2019

I obtained this in the Jupyter Lab environment. However, even if I change from Jupyter Lab to Jupyter notebook by changing /lab to /tree I still get this error.

@sgugger
Copy link
Contributor

sgugger commented May 2, 2019

In jupyter lab, you need to type this after installing ipywidgets

jupyter labextension install @jupyter-widgets/jupyterlab-manager

More generally, it seems there is something broken with your installation of ipywidgets, try reinstalling it?

@sgugger
Copy link
Contributor

sgugger commented Mar 28, 2020

This has not been addressed in a while, so closing.

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

2 participants