From 6c777e3e8019e2518b0690d4bb61f8e3800a3276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Wed, 31 Jul 2019 13:21:08 +0200 Subject: [PATCH] [doc build] add memory usage in examples. --- build_tools/circle/build_doc.sh | 2 +- doc/conf.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build_tools/circle/build_doc.sh b/build_tools/circle/build_doc.sh index 57486f1822ca5..f954ce5fd928c 100755 --- a/build_tools/circle/build_doc.sh +++ b/build_tools/circle/build_doc.sh @@ -130,7 +130,7 @@ conda create -n $CONDA_ENV_NAME --yes --quiet python="${PYTHON_VERSION:-*}" \ cython="${CYTHON_VERSION:-*}" pytest coverage \ matplotlib="${MATPLOTLIB_VERSION:-*}" sphinx=2.1.2 pillow \ scikit-image="${SCIKIT_IMAGE_VERSION:-*}" pandas="${PANDAS_VERSION:-*}" \ - joblib + joblib memory_profiler source activate testenv pip install sphinx-gallery==0.3.1 diff --git a/doc/conf.py b/doc/conf.py index c68f22fff6218..0408c46ae4151 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -250,6 +250,7 @@ sphinx_gallery_conf = { 'doc_module': 'sklearn', 'backreferences_dir': os.path.join('modules', 'generated'), + 'show_memory': True, 'reference_url': { 'sklearn': None} }