apahl
apahl9mo ago

Hosting files

Hi, thank you for all your help. I already have another question (sorry about that). As part of an analysis with marimo I generate a HTML file that I would like to offer as a link (or a button) for the user to open in a separate window / tab. On my machine this works using Python's webbrowser.open(), but obviously this does not work, when the marimo Notebook is running on a different machine. Is there a way to tell marimo to host the generated file, so that the user can access it? E.g. when the HTML file is written to clusters/cluster_001.html, can I make it somehow accessible e.g. as http://<ip_adress>:2718/clusters/cluster_001.html ?
2 Replies
Akshay
Akshay9mo ago
We don't have a way to do that today. In the meantime, you could use mo.download to provide a way for users to download the HTML file; they'd then need to manually open it in a browser
apahl
apahlOP9mo ago
Ok, thank you. Yes, this will work. 👍🏽