module documentation
Session class for interacting with the FiftyOne App.
Class |
|
Session that maintains a 1-1 shared state with the FiftyOne App. |
Function | close |
Closes the FiftyOne App, if necessary. |
Function | launch |
Launches the FiftyOne App. |
Function | update |
Session method decorator for triggering state update events |
Variable | logger |
Undocumented |
Function | _attach |
Undocumented |
Function | _log |
Logs a welcome message the first time this function is called on a machine with a new FiftyOne version installed, if allowed. |
Function | _on |
Refreshes session state, including a dataset reload. |
Function | _pull |
Undocumented |
Function | _register |
Undocumented |
Function | _unregister |
Undocumented |
Constant | _APP |
Undocumented |
Constant | _APP |
Undocumented |
Constant | _REMOTE |
Undocumented |
Constant | _WAIT |
Undocumented |
Constant | _WELCOME |
Undocumented |
Variable | _server |
Undocumented |
Variable | _session |
Undocumented |
Variable | _subscribed |
Undocumented |
def launch_app(dataset:
fod.Dataset
= None, view: fov.DatasetView
= None, sample_id: str
= None, group_id: str
= None, spaces: Space
= None, color_scheme: food.ColorScheme
= None, plots: fop.PlotManager
= None, port: int
= None, address: str
= None, remote: bool
= False, browser: str
= None, height: int
= None, auto: bool
= True, config: AppConfig
= None) -> Session
:
(source)
¶
Launches the FiftyOne App.
Note that only one App instance can be opened at a time. If this method is called when another App exists, the existing App will be closed.
Parameters | |
dataset:None | an optional fiftyone.core.dataset.Dataset or
fiftyone.core.view.DatasetView to load |
view:None | an optional fiftyone.core.view.DatasetView to
load |
sampleNone | an optional fiftyone.core.sample.Sample ID
to load in the modal |
groupNone | an optional fiftyone.core.groups.Group ID
to load in the modal |
spaces:None | an optional fiftyone.core.odm.workspace.Space
instance defining a space configuration to load |
colorNone | an optional
fiftyone.core.odm.dataset.ColorScheme defining a custom
color scheme to use |
plots:None | an optional
fiftyone.core.plots.manager.PlotManager to connect to this
session |
port:None | the port number to serve the App. If None, fiftyone.config.default_app_port is used |
address:None | the address to serve the App. If None, fiftyone.config.default_app_address is used |
remote:False | whether this is a remote session, and opening the App should not be attempted |
browser:None | an optional browser to use to open the App. If None, the default browser will be used. Refer to list of supported browsers at https://docs.python.org/3/library/webbrowser.html |
height:None | an optional height, in pixels, at which to render App instances in notebook cells. Only applicable in notebook contexts |
auto:True | whether to automatically show a new App window whenever the state of the session is updated. Only applicable in notebook contexts |
config:None | an optional fiftyone.core.config.AppConfig to
control fine-grained default App settings |
Returns | |
Session | a Session |
Session
method decorator for triggering state update events
Parameters | |
autoFalse | whether the method should show a new notebook App cell as well, if auto is True |
Returns | |
t.Callable | the decorated method |
Logs a welcome message the first time this function is called on a machine with a new FiftyOne version installed, if allowed.
def _pull_group_slice(dataset:
fod.Dataset | None
, view: fov.DatasetView | None
) -> None | str
:
(source)
¶
Undocumented
Undocumented
Value |
|
Undocumented
Value |
|