fiftyone.core.context#
Context utilities.
Functions:
Initializes context settings. |
|
Determines whether this process is running in a notebook context, either Jupyter or Google Colab. |
|
Determines whether this process is running in a Jupyter notebook. |
|
Determines whether this process is running in Google Colab. |
|
Determines whether this process is running in Databricks. |
|
|
Exceptions:
Exception raised when an action is taken in an unsupported context. |
- fiftyone.core.context.init_context()#
Initializes context settings.
- fiftyone.core.context.is_notebook_context()#
Determines whether this process is running in a notebook context, either Jupyter or Google Colab.
- Returns:
True/False
- fiftyone.core.context.is_jupyter_context()#
Determines whether this process is running in a Jupyter notebook.
- Returns:
True/False
- fiftyone.core.context.is_colab_context()#
Determines whether this process is running in Google Colab.
- Returns:
True/False
- fiftyone.core.context.is_databricks_context()#
Determines whether this process is running in Databricks.
- Returns:
True/False
- fiftyone.core.context.get_url(address: str, port: int, proxy_url: str = None, **kwargs: Dict[str, str]) str #
- exception fiftyone.core.context.ContextError#
Bases:
OSError
Exception raised when an action is taken in an unsupported context.
Methods:
Exception.add_note(note) -- add a note to the exception
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
Attributes:
POSIX exception code
exception filename
second exception filename
exception strerror
- add_note()#
Exception.add_note(note) – add a note to the exception
- args#
- characters_written#
- errno#
POSIX exception code
- filename#
exception filename
- filename2#
second exception filename
- strerror#
exception strerror
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.