diff --git a/skore/src/skore/cli/launch_dashboard.py b/skore/src/skore/ui/launch.py similarity index 92% rename from skore/src/skore/cli/launch_dashboard.py rename to skore/src/skore/ui/launch.py index 368838c81..f3dcff9d9 100644 --- a/skore/src/skore/cli/launch_dashboard.py +++ b/skore/src/skore/ui/launch.py @@ -1,4 +1,4 @@ -"""Implement the "launch" command.""" +"""Implement the "launch" function.""" import webbrowser from contextlib import asynccontextmanager @@ -9,12 +9,12 @@ from fastapi import FastAPI from skore.cli import logger -from skore.project import open +from skore.project import Project from skore.ui.app import create_app from skore.utils._logger import logger_context -def __launch( +def launch( project_name: Union[str, Path], port: int, open_browser: bool, @@ -36,7 +36,7 @@ def __launch( from skore import console # avoid circular import with logger_context(logger, verbose): - project = open(project_name) + project = Project(project_name) @asynccontextmanager async def lifespan(app: FastAPI):