I am having issues importing files into my code with file_input. I have read Workaround for large files and tried but file was not load. I tried a little code to check if it enters sometimes but it seems it hangs and it is not a matter of time to load (Code is below)
class App(param.Parameterized): file_input = param.Parameter() def __init__(self, **params): self.param.file_input.default = pn.widgets.FileInput() super().__init__(**params) @pn.depends("file_input.value", watch=True) def file(self): value = self.file_input.value pl = pv.Plotter(notebook=True) print(len(value)) if value: self.file_val = value print("file") else: print("error") print() def view(self): return pn.Column( self.file_input, ) app = App() app_view = app.view() app_view.show()
I used and 4.4 MB files can be read but over 50 MB I was not able to retrieve data from files.
Does anybody knows how to deal with this and read a large file?
Thanks for your help