diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2020-05-25 20:15:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 20:15:52 -0400 |
commit | 77eb712d5043c46a223ec035ca3d5f0e04e87b70 (patch) | |
tree | dba37e8db94b19cfd8ce72386529360563e22fda | |
parent | 5dd85bfb6080f9a560cb0313737a1a7c0638ea7e (diff) | |
parent | 43d6898ea2dd234c6626b459270d564cda551f41 (diff) |
Merge pull request #77281 from bcdarwin/python-livelossplot
python3Packages.livelossplot: init at v0.5.0
-rw-r--r-- | pkgs/development/python-modules/livelossplot/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/livelossplot/default.nix b/pkgs/development/python-modules/livelossplot/default.nix new file mode 100644 index 0000000000000..c58a18dffe8e7 --- /dev/null +++ b/pkgs/development/python-modules/livelossplot/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +, isPy27 +, pytest +, bokeh +, ipython +, matplotlib +, numpy +, nbconvert +, nbformat +}: + +buildPythonPackage rec { + pname = "livelossplot"; + version = "0.5.0"; + + disabled = isPy27; + + src = fetchFromGitHub { + owner = "stared"; + repo = pname; + rev = "v${version}"; + sha256 = "164v65qglgyg38q9ajnas99rp14mvrk5hn8x76b8iy81vszmx1c0"; + }; + + propagatedBuildInputs = [ bokeh ipython matplotlib numpy ]; + + checkInputs = [ pytest nbconvert nbformat ]; + checkPhase = '' + pytest tests tests/external_test_examples.py + ''; + + meta = with stdenv.lib; { + description = "Live training loss plot in Jupyter for Keras, PyTorch, and others"; + homepage = "https://github.com/stared/livelossplot"; + license = licenses.mit; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 762dc1cd46939..138b92c5ab5c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -889,6 +889,8 @@ in { limitlessled = callPackage ../development/python-modules/limitlessled { }; + livelossplot = callPackage ../development/python-modules/livelossplot { }; + lmtpd = callPackage ../development/python-modules/lmtpd { }; logster = callPackage ../development/python-modules/logster { }; |