1

I found this beautiful implementation of a Qt here Unfortunately, that does not work when the notebook is not local. I wonder whether anyone knows an implementation that works also in remote notebooks.

Soerendip
  • 7,684
  • 15
  • 61
  • 128

2 Answers2

2

I think you should have a look into the ipyvuetify FileInput component

I use it on a remote notebook and it works like a charm

import ipywidgets as widgets
from ipyvuetify.extra import FileInput
import hashlib

file_input = FileInput()
file_input

myfiles = file_input.get_files()
myfiles[0]

you can then do whatever you want with the content of myfiles (upload, modify, copy... etc)

Pierrick Rambaud
  • 1,726
  • 1
  • 20
  • 47
0

I saw this posted in ipywidgets gitter a few weeks ago, not my code. Any use?

https://gitlab.com/oscar6echo/ipyupload

ac24
  • 5,325
  • 1
  • 16
  • 31