its me again…I experienced with the same notebook on Jupyter (instead of JupyterLab) and the widgets work! lots of time wasted, I do not know why it was not working on JupyterLab but remembered having seem some comments in the notes somewhere that some functions did not work on JupyterLab.
I solved this on my Ubuntu Desktop machine (20.04 version) by installing the supposedly missing NODE.JS …as well as the before-mentioned ipywidgets via pip3.
Node.js definitely fixed the problem for me …it did require a restart. Good luck!
I’ve suffered all day with this problem. Button “uploadfile” has not appeared. Fortunately, I’ve found an issue. In my case it depended on the place where you creat your notebook. If you make it in fastai template, “uploadfile” will work but only in pythonlab. Otherwise it doesn’t work.
For Colab users, I found this solution. If you can upload an image but the code after that did not work. try to put # in front of this line of code: #uploader = SimpleNamespace(data = [‘images/chapter1_cat_example.jpg’])
this will disable the local image from being uploaded, and it will responded to the image that you actually uploading.
Note: Try not to let this issue slow you down. When you are ready to build your own app and want an upload button, you can address this issue in different ways.
My experience: I was making a very noob mistake using Google Colab trying to complete the testing of the cat/dog recognizer. I kept getting errors trying to run these cells getting errors like “No such file or directory: ‘images/chapter1_cat_example.jpg’” and “list index out of range”. My mistake was that every time I uploaded the image to the upload cell, I kept running the cell thinking that that was the way to save it. Uploading the image but not running the cell and then running the third cell (skipping the second cell used for when the first cell does not work) is what fixed this problem for me.