Skip to content

Commit

Permalink
Set default explorer version in python sdk (#692)
Browse files Browse the repository at this point in the history
Follow-up on #681 which fixes this for the Python SDK as well.
  • Loading branch information
RobbeSneyders authored Dec 4, 2023
1 parent b3ccf67 commit cb27c07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fondant/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import shlex
import subprocess # nosec
import typing as t
from importlib.metadata import version
from pathlib import Path

import fsspec.core
Expand All @@ -14,7 +15,7 @@ def run_explorer_app( # type: ignore
base_path: str,
port: int = 8501,
container: str = "fndnt/data_explorer",
tag: str = "latest",
tag: t.Optional[str] = None,
extra_volumes: t.Union[t.Optional[list], t.Optional[str]] = None,
): # type: ignore
"""
Expand All @@ -31,6 +32,9 @@ def run_explorer_app( # type: ignore
base_path is local it will already be mounted for you).
- to mount cloud credentials
"""
if tag is None:
tag = version("fondant") if version("fondant") != "0.1.dev0" else "latest"

if extra_volumes is None:
extra_volumes = []

Expand Down

0 comments on commit cb27c07

Please sign in to comment.