jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.13k stars 949 forks source link

Cannot create FileUpload #2603

Open fpom opened 4 years ago

fpom commented 4 years ago

When I create a FileUpload, it doesn't display. I have a bunch of errors in the JS console of the browser. On the attached screenshot, I start with an emptied console, and the restart the kernel & re-run the full notebook.

I've tried other widgets, they work. I've tried with FireFox and got the same errors.

Screenshot from 2019-11-04 17-07-56

michcio1234 commented 4 years ago

@fpom did you manage to fix it? I am have the exact same issue.

fpom commented 4 years ago

Nope, still waiting for some help.

michcio1234 commented 4 years ago

I tried re-creating my conda virtual env and it didn't help. However, I worked it around by running a notebook server in Docker.

fpom commented 4 years ago

That's weird! Probably you don't have the same version (or configuration) of Python inside and outside of Docker.

eexwhyzee commented 4 years ago

Also ran into this problem running the notebook locally (macOS), but widget works in docker for me as well (specifically on binderhub/jupyterhub deployments on k8s)

martinRenou commented 4 years ago

The FileUpload widget is quite new, and I suspect you are in an environment where you updated ipywidgets at some point. I would suggest recreating a new environment and make a clean installation of ipywidgets.

Also, you can try restarting the server/refreshing the page after updating ipywidgets.

michcio1234 commented 4 years ago

@martinRenou not really, as I wrote a few comments above, I tried creating a new conda virtual env with everything installed from scratch and it didn't help.

martinRenou commented 4 years ago

Could it happen that you have ipywidgets or Jupyter installed in the base conda environment? Which would conflict with your current environment.

martinRenou commented 4 years ago

Also, if it's JupyterLab, do not forget to re-install the extension with:

jupyter labextension install @jupyter-widgets/jupyterlab-manager