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

Handle different base paths explorer #427

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

PhilippeMoussalli
Copy link
Contributor

Linked to #426 #424

Previous implementation of the local runner could only work with a local runner and not the remote one. This PR enables the explorer to handle both. If the base path is local, it will be mounted to the explorer. Otherwise, the base path will be passed as a container argument inside the component

Notes:

  • Cloud credentials are optional for the local runner (manifest is local but can point to a remote ) but mandatory with the remote base path

@PhilippeMoussalli PhilippeMoussalli changed the title handle different base paths explorer Handle different base paths explorer Sep 11, 2023
ENTRYPOINT [ "streamlit", "run", "/app/main.py", "--server.headless", "true", \
"--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false", \
"--server.port=8501", "--server.address=0.0.0.0", "--"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the '--' at the end is need to pass additional arguments (remote base path) as mentioned here

data_explorer/app/main.py Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double of the src/fondant/filesystem.py ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, indeed this is not needed

First review  #427

PR that updates the interface of the data explorer 

![image](https://github.com/ml6team/fondant/assets/47530815/964f640a-af24-46a2-b595-e1a24f168ab1)

Notes: 
* Right now the base path that we currently have has a mix of subsets
and fields. Related to #244
* The current base paths contains a mix of subsets and pipelines due to
the old way of organizing. In the future it should only include pipeline
names.
#368 (comment)
Perhaps we can do some cleanup to our current base path and remove
unnecessary subsets

```
gs://soy-audio-379412_kfp-artifacts/custom_artifact
```
@@ -4,11 +4,12 @@
import os
from typing import Dict, List, Optional, Tuple, Union

from fondant.filesystem import get_filesystem
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this import also needs a change I think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no we still have src/filesystem.py so this should be fine

@PhilippeMoussalli PhilippeMoussalli merged commit 32c8272 into main Sep 18, 2023
5 checks passed
@PhilippeMoussalli PhilippeMoussalli deleted the data-explorer-handle-base-paths branch September 18, 2023 09:00
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
Linked to #426 #424 

Previous implementation of the local runner could only work with a local
runner and not the remote one. This PR enables the explorer to handle
both. If the base path is local, it will be mounted to the explorer.
Otherwise, the base path will be passed as a container argument inside
the component

Notes: 
* Cloud credentials are optional for the local runner (manifest is local
but can point to a remote ) but mandatory with the remote base path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants