Presenting marimo notebook for class
Hi, I have a Marimo notebook that I would like to present in class. What would be an appropriate way for me to deploy the notebook as an app during my presentation so that people in my class can interact with it? I was originally going to use WASM but my notebook processes a png image using the sci-kit learn and Pillow libraries. As a result, I get an image not found error when using WASM. I don't have much experience with deploying applications.
8 Replies
Hey Calvin — sklear and pillow should both work in WASM. Is the issue that you need to access the png though?
If that's the only issue, ie if WASM works otherwise, we might be able to get around it
Hi Akshay, both libraries work great! The issue is with the image. When I upload the png image to the notebook as it is running on my machine, it works fine, but if I try to access it from another laptop the image is no longer attached to the notebook. I'm trying to figure out how to deploy it so that everyone in the class could run it.
Got it, let me try something and get back to you
Ok, thank you. I can also give you the github repo to my project/code if that makes it easier for you understand my issue
sure!
GitHub
GitHub - czhurdlespeed/K-MeansClustering
Contribute to czhurdlespeed/K-MeansClustering development by creating an account on GitHub.
Thanks, that's helpful!
1. You can use the
requests
library to just download the image from the notebook. That way your users won't need to have the file locally.
https://marimo.app/l/3sf8p3
2. Add ?mode=read
to a marimo.app short-link to share it in run mode:
https://marimo.app/l/3sf8p3?mode=read
I think this should unblock you -- let me know if it doesn't!marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
Awesome, thank you!