I should add an "upload" button/box using mo.ui.file, which allows users to upload there own spectral data folder, which can then be read in and will show up on the "choose star" dropdown.
This will allow someone to run the marimo script via the link on the github which loads it in the browser, even if there are no data files being stored on the repo (as is currently the case). They would click the link to load the script in the browser, no files would be listed, so then they could click the upload button, upload a folder they have downloaded themselves, and the tool would display the plot for them. The uploaded file is only uploaded to a virtual environment and deleted after they close the window.
(This would be exactly the same as how I did it in the 'Bromberg Suite'/stellar evolution interactive tool project, so hopefully I can copy the code from there. It should assume the uploaded file is a .zip compressed folder which is the format it can be downloaded from BeSS)
I should add an "upload" button/box using mo.ui.file, which allows users to upload there own spectral data folder, which can then be read in and will show up on the "choose star" dropdown.
This will allow someone to run the marimo script via the link on the github which loads it in the browser, even if there are no data files being stored on the repo (as is currently the case). They would click the link to load the script in the browser, no files would be listed, so then they could click the upload button, upload a folder they have downloaded themselves, and the tool would display the plot for them. The uploaded file is only uploaded to a virtual environment and deleted after they close the window.
(This would be exactly the same as how I did it in the 'Bromberg Suite'/stellar evolution interactive tool project, so hopefully I can copy the code from there. It should assume the uploaded file is a .zip compressed folder which is the format it can be downloaded from BeSS)