r/marimo_notebook • u/jmacey • 3d ago
Finally Got MoLab working with my local packages!
Been struggling to get molab to import my packages from github repos, but found I can use inline script metadata to do it (these are new to me!).
# /// script
# dependencies = [
# "marimo",
# "audiosample @ git+https://github.com/NCCA/softwareengineeringformedia26-27-programmingassignment-jmacey.git@main#subdirectory=AudioSample",
# "av",
# "matplotlib",
# ]
# ///
Now I can share more stuff with my students like this
https://molab.marimo.io/github/github.com/NCCA/softwareengineeringformedia26-27-programmingassignment-jmacey/blob/main/AudioSample/test_audio_sample.py
Which is part of a small project I am doing (basically doing my own version of the assignment the students have been set which is an open brief in ML for Media) to investigate nerural amp / pedal modelling.