fb = mo.ui.file_browser() fb.value[0].path # gives you path
mo.ui.file
f = mo.ui.file(kind="button", filetypes=[".csv"]) mo.stop(len(f.value) == 0, mo.md("Dataframe viewer")) df = pl.read_csv(f.value[0].contents)
fb = mo.ui.file_browser() fb.value[0].path # gives you path
mo.ui.file
f = mo.ui.file(kind="button", filetypes=[".csv"]) mo.stop(len(f.value) == 0, mo.md("Dataframe viewer")) df = pl.read_csv(f.value[0].contents)