From f7be113ad0b09a72acea2c10f93138babc3966e3 Mon Sep 17 00:00:00 2001 From: philiporlando Date: Thu, 18 Jan 2024 21:21:09 -0800 Subject: [PATCH] add RETICULATE_PYTHON instructions --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba0d8b0..0083dce 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,16 @@ To begin exploring the integration of Dagster and R: poetry install ``` -4. **Launch the Dagster UI** +4. **Set RETICULATE_PYTHON environment variable** +Determine the path to the python binary associated with this project's poetry environment. + ```bash + poetry run + which python + # /home/user/.cache/pypoetry/virtualenvs/dagster-and-r-kS5e8P_l-py3.10/bin/python + ``` +Create a new `.Renviron` file at the root of the project and add set the `RETICULATE_PYTHON` variable to this path. + +5. **Launch the Dagster UI** Start the Dagster web server: ```bash poetry run dagster dev @@ -35,17 +44,17 @@ To begin exploring the integration of Dagster and R: ![Dagster UI Never Materialized](./img/dagster-ui-never-materialized.PNG) -5. **Materialize Assets** +6. **Materialize Assets** Click the "Materialize all" button in the top right of the UI. Each of the assets within this project should materialize without error. ![Dagster UI Materialized](./img/dagster-ui-materialized.PNG) -6. **Inspect the Run** +7. **Inspect the Run** Click the "Runs" tab and navigate to the latest run of the pipeline to access detailed information, including custom logs, asset checks, and environment variables being passed from an external R session. ![Dagster UI Run](./img/dagster-ui-run-highlights.PNG) -7. **Create Assets** +8. **Create Assets** Begin writing assets in `dagster_and_r/assets.py`. They are automatically loaded into the Dagster code location.