Skip to content

Commit

Permalink
[skip ci] Move launch function from cli/ to ui/
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Jan 28, 2025
1 parent c9085d5 commit 76d768c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Implement the "launch" command."""
"""Implement the "launch" function."""

import webbrowser
from contextlib import asynccontextmanager
Expand All @@ -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,
Expand All @@ -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):
Expand Down

0 comments on commit 76d768c

Please sign in to comment.