In-repo config¶
Some mobu behavior can be controlled by files within notebook repos that mobu clones and runs.
Exclude notebooks in specific directories¶
You can tell mobu to exclude notebooks in specific directories by creating a mobu.yaml
file at the root of your notebook repo that looks like this:
exclude_dirs:
- "some-dir"
- "some-other-dir"
This prevents mobu from executing any notebooks in these directories or any descendant directories. These directories are relative to the repo root.
Service-specific notebooks¶
Each mobu instance knows what other services are running in its environment.
You can annotate a notebook to specify that it should only be run if certain services are available.
Add a mobu
section to the notebook metadata with a required_services
key:
{
"cells": [
// A bunch of cells
],
"metadata": {
"mobu": {
"required_services": ["nublado"]
},
// A bunch of other metadata
},
"nbformat": 4,
"nbformat_minor": 5
}