Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default explorer version in python sdk #692

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading