diff --git a/docs_sources/python-ref.Rmd b/docs_sources/python-ref.Rmd index 6d9d4692..a6bab866 100644 --- a/docs_sources/python-ref.Rmd +++ b/docs_sources/python-ref.Rmd @@ -8,13 +8,21 @@ output: collapsed: false css: custom.css --- + +```{r message=FALSE} +message("Current working directory: ", getwd()) +message("Contents of working directory: ", paste(dir(getwd()), collapse = ", ")) +``` + ```{r setup, include=FALSE} library(reticulate) knitr::knit_engines$set(python = reticulate::eng_python) knitr::opts_knit$set(progress = TRUE, verbose = TRUE, highlight = TRUE) reticulate::py_install(c("matplotlib", "scikit-learn", "seaborn")) -reticulate::py_install("pmlb", pip = TRUE) +# reticulate::py_install("pmlb", pip = TRUE) +config <- reticulate::py_config() +system2(config$python, c("-m", "pip", "install", "--quiet", shQuote("../"))) ``` diff --git a/docs_sources/using-python.Rmd b/docs_sources/using-python.Rmd index 10c81e83..cd7b6460 100644 --- a/docs_sources/using-python.Rmd +++ b/docs_sources/using-python.Rmd @@ -2,13 +2,21 @@ title: "Using PMLB Python interface" --- + +```{r message=FALSE} +message("Current working directory: ", getwd()) +message("Contents of working directory: ", paste(dir(getwd()), collapse = ", ")) +``` + ```{r setup, include=FALSE} library(reticulate) knitr::knit_engines$set(python = reticulate::eng_python) knitr::opts_knit$set(progress = TRUE, verbose = TRUE, highlight = TRUE) reticulate::py_install(c("matplotlib", "scikit-learn", "seaborn")) -reticulate::py_install("pmlb", pip = TRUE) +# reticulate::py_install("pmlb", pip = TRUE) +config <- reticulate::py_config() +system2(config$python, c("-m", "pip", "install", "--quiet", shQuote("../"))) ```