From 2dceea02d7b450db0f61c62d76f88c5c47fd353c Mon Sep 17 00:00:00 2001 From: Ian Coffey Date: Wed, 22 Apr 2020 09:55:14 -0400 Subject: [PATCH 1/3] add a recipe around being able to install auto_sklearn --- docs/using/recipes.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/using/recipes.md b/docs/using/recipes.md index a5542259..edde2f26 100644 --- a/docs/using/recipes.md +++ b/docs/using/recipes.md @@ -516,3 +516,24 @@ RUN pip install jupyter_contrib_nbextensions && \ Ref: [https://github.com/jupyter/docker-stacks/issues/675](https://github.com/jupyter/docker-stacks/issues/675) + +## Enable auto-sklearn notebooks + +Using auto-sklearn requires swig, which the other notebook images lack, so it cant be experimented with. Also, there is no Conda package for auto-sklearn. + +``` +ARG BASE_CONTAINER=jupyter/scipy-notebook +FROM jupyter/scipy-notebook:latest + +USER root + +# autosklearn requires swig, which no other image has +RUN apt-get update && \ + apt-get install -y --no-install-recommends swig && \ + rm -rf /var/lib/apt/lists/* + +USER $NB_UID +ARG py_ver=3.6 + +RUN pip install auto-sklearn +``` From 1a56c47dfe0e6c746237c3f4c3efd58e1b9b94f2 Mon Sep 17 00:00:00 2001 From: Ian Coffey Date: Thu, 14 May 2020 10:25:18 -0400 Subject: [PATCH 2/3] Improve formatting for autosklearn recipe --- docs/using/recipes.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/using/recipes.md b/docs/using/recipes.md index edde2f26..eff85fac 100644 --- a/docs/using/recipes.md +++ b/docs/using/recipes.md @@ -519,7 +519,7 @@ Ref: ## Enable auto-sklearn notebooks -Using auto-sklearn requires swig, which the other notebook images lack, so it cant be experimented with. Also, there is no Conda package for auto-sklearn. +Using `auto-sklearn` requires `swig`, which the other notebook images lack, so it cant be experimented with. Also, there is no Conda package for `auto-sklearn`. ``` ARG BASE_CONTAINER=jupyter/scipy-notebook @@ -530,10 +530,11 @@ USER root # autosklearn requires swig, which no other image has RUN apt-get update && \ apt-get install -y --no-install-recommends swig && \ + apt-get clean && \ rm -rf /var/lib/apt/lists/* -USER $NB_UID -ARG py_ver=3.6 -RUN pip install auto-sklearn +USER $NB_UID + +RUN pip install --quiet auto-sklearn ``` From e243eeb0f6a1db684027ab9176760a22a0bd624f Mon Sep 17 00:00:00 2001 From: Ian Coffey Date: Fri, 15 May 2020 18:03:18 -0400 Subject: [PATCH 3/3] add --no-cache-dir to autosklearn recipe --- docs/using/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/using/recipes.md b/docs/using/recipes.md index eff85fac..9afb5586 100644 --- a/docs/using/recipes.md +++ b/docs/using/recipes.md @@ -536,5 +536,5 @@ RUN apt-get update && \ USER $NB_UID -RUN pip install --quiet auto-sklearn +RUN pip install --quiet --no-cache-dir auto-sklearn ```