MCPcopy Index your code
hub / github.com/feast-dev/feast / _path_setup_cell

Function _path_setup_cell

sdk/python/feast/demos.py:214–228  ·  view source on GitHub ↗

Return a code cell that sets ``FEAST_FS_YAML`` to the absolute path of the feature-store config resolved at generation time.

(yaml_abs: str)

Source from the content-addressed store, hash-verified

212
213
214def _path_setup_cell(yaml_abs: str) -> dict[str, Any]:
215 """Return a code cell that sets ``FEAST_FS_YAML`` to the absolute path of
216 the feature-store config resolved at generation time."""
217 return _code(
218 "import os\n"
219 "\n"
220 f"FEAST_FS_YAML = r{repr(yaml_abs)}\n"
221 "\n"
222 "assert os.path.exists(FEAST_FS_YAML), (\n"
223 " f'Config not found at {FEAST_FS_YAML!r}. '\n"
224 " 'Update FEAST_FS_YAML to the correct path.'\n"
225 ")\n"
226 "print(f'Using feature_store.yaml: {FEAST_FS_YAML}')",
227 tags=["parameters"],
228 )
229
230
231def _nb_overview(info: dict[str, Any], yaml_abs: str) -> dict[str, Any]:

Callers 3

_nb_overviewFunction · 0.85
_nb_historicalFunction · 0.85
_nb_onlineFunction · 0.85

Calls 1

_codeFunction · 0.85

Tested by

no test coverage detected