Skip to content

featurebyte.Catalog.get_context_by_id

get_context_by_id(
id: ObjectId
) -> Context

Description

Get context by id.

Parameters

  • id: ObjectId
    Context id.

Returns

  • Context
    Context object.

Examples

Get a saved context.

>>> context = catalog.get_context_by_id(ObjectId())