peteut / ipython-file-upload

IPython file upload widget. Now obsolete, refer to widgets.https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#File-Upload
33 stars 11 forks source link

Problem using on python 2.x #2

Closed kubark42 closed 8 years ago

kubark42 commented 8 years ago

https://github.com/peteut/ipython-file-upload/blob/master/fileupload/widget.py#L33

The implementation of super() is not compatible with Python 2.x. The following is, however:

super(FileUploadWidget, self).__init__(*args, **kwargs)

Replacing the one with the other, everything works perfectly. Not sure if you want to extend support to both Python 2 and Python 3 (and have potentially twice as many bugs to find. : ).

In any case, thanks a million for this library, it's exactly what we needed!

peteut commented 8 years ago

@kubark42 nice to hear it works for you.

den-run-ai commented 8 years ago

@kubark42 I'm hitting tons of bugs - how did you get this working, can you show your pip list and any additional installation instructions for nbextension, javascript, etc.?