byeproduct
byeproduct
Mmarimo
Created by byeproduct on 11/20/2024 in #help-support
Import function from local module
This may be a silly question, but can I add a module with my custom scripts/functions from my local working directory and then reference these python files in the marimo notebook? I currently get a "no module found" / "missing package" error when I add from local_folder.my_python_script import my_function What would be the best way to do this? The problem I'm trying to solve is to not have to copy the same functions into my notebooks, but have the base functions as in import into my notebook. Could I use UV to build a package out of my base modules, and then use UV to install from a local wheel file? I don't know how to do this (in UV or in general), so any tutorials or links would be helpful.
9 replies