From f38610c09ba8babd6e21b5d0e6f106762e5dcdbe Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Sun, 19 Dec 2021 03:12:49 +0100 Subject: [PATCH] matplotlib-inline: Don't depend on matplotlib -> smaller ipython closure The lib `matplotlib-inline` is only a shim to integrate `matplotlib` in ipython, but it doesn't actually require it. If one wants to use the matplotlib integration, `matplotlib` need to be installed separatedly, then calling `%matplotlib inline` at a ipython prompt will work. Not including `matplotlib` is closer to a non-Nix installation: Installing ipython in a fresh venv also does not install `matplotlib`. NOTE: ipython's closure is now ~160MB instead of ~400MB. (including ~100MB for python itself) --- pkgs/development/python-modules/matplotlib-inline/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/matplotlib-inline/default.nix b/pkgs/development/python-modules/matplotlib-inline/default.nix index 9ee23b87ee81..d863239430dc 100644 --- a/pkgs/development/python-modules/matplotlib-inline/default.nix +++ b/pkgs/development/python-modules/matplotlib-inline/default.nix @@ -1,5 +1,4 @@ { lib, buildPythonPackage, fetchPypi -, matplotlib , traitlets # tests @@ -16,7 +15,6 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - matplotlib # not documented, but required traitlets ];