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

Function _code

sdk/python/feast/demos.py:127–137  ·  view source on GitHub ↗
(source: str, tags: Optional[list[str]] = None)

Source from the content-addressed store, hash-verified

125
126
127def _code(source: str, tags: Optional[list[str]] = None) -> dict[str, Any]:
128 meta: dict[str, Any] = {}
129 if tags:
130 meta["tags"] = tags
131 return {
132 "cell_type": "code",
133 "execution_count": None,
134 "metadata": meta,
135 "outputs": [],
136 "source": source,
137 }
138
139
140def _notebook(cells: list[dict[str, Any]]) -> dict[str, Any]:

Callers 5

_apply_codeFunction · 0.85
_path_setup_cellFunction · 0.85
_nb_overviewFunction · 0.85
_nb_historicalFunction · 0.85
_nb_onlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected