Patchwork [16/16] gnu: Add jupyter.

login
register
mail settings
Submitter Ricardo Wurmus
Date Nov. 1, 2016, 12:20 p.m.
Message ID <20161101122046.751-17-ricardo.wurmus@mdc-berlin.de>
Download mbox | patch
Permalink /patch/17056/
State New
Headers show

Comments

Ricardo Wurmus - Nov. 1, 2016, 12:20 p.m.
* gnu/packages/python.scm (jupyter): New variable.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
Roel Janssen - Nov. 1, 2016, 6:20 p.m.
Ricardo Wurmus writes:

> * gnu/packages/python.scm (jupyter): New variable.
> ---
>  gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 12d38f1..a26a129 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -6947,6 +6947,36 @@ in the data.")
>  (define-public python2-jupyter-console
>    (package-with-python2 python-jupyter-console))
>  
> +(define-public jupyter
> +  (package
> +    (name "jupyter")
> +    (version "1.0.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "jupyter" version))
> +       (sha256
> +        (base32
> +         "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
> +    (build-system python-build-system)
> +    ;; FIXME: it's not clear how to run the tests.
> +    (arguments `(#:tests? #f))
> +    (propagated-inputs
> +     `(("python-ipykernel" ,python-ipykernel)
> +       ("python-ipywidgets" ,python-ipywidgets)
> +       ("python-jupyter-console" ,python-jupyter-console)
> +       ("python-nbconvert" ,python-nbconvert)
> +       ("python-notebook" ,python-notebook)
> +       ("python-setuptools" ,python-setuptools)))
> +    (home-page "http://jupyter.org")
> +    (synopsis "Web application for interactive documents")
> +    (description
> +     "The Jupyter Notebook is a web application that allows you to create and
> +share documents that contain live code, equations, visualizations and
> +explanatory text.  Uses include: data cleaning and transformation, numerical
> +simulation, statistical modeling, machine learning and much more.")
> +    (license license:bsd-3)))
> +
>  (define-public python-chardet
>    (package
>      (name "python-chardet")

LGTM!

And that concludes this patch series.  Thanks a lot for adding Jupyter.
Like I said, I attempted to do it, but I got stuck / ran out of time to
implement it before I needed it.  It's great to see that it will be
added to GNU Guix soon.

Kind regards,
Roel Janssen
Ricardo Wurmus - Nov. 4, 2016, 8:26 p.m.
Roel Janssen <roel@gnu.org> writes:

> And that concludes this patch series.  Thanks a lot for adding Jupyter.
> Like I said, I attempted to do it, but I got stuck / ran out of time to
> implement it before I needed it.  It's great to see that it will be
> added to GNU Guix soon.

Thank you very much for the thorough review!  I’ve pushed the patches to
master with the changes you and Hartmut suggested.

~~ Ricardo

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 12d38f1..a26a129 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6947,6 +6947,36 @@  in the data.")
 (define-public python2-jupyter-console
   (package-with-python2 python-jupyter-console))
 
+(define-public jupyter
+  (package
+    (name "jupyter")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jupyter" version))
+       (sha256
+        (base32
+         "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
+    (build-system python-build-system)
+    ;; FIXME: it's not clear how to run the tests.
+    (arguments `(#:tests? #f))
+    (propagated-inputs
+     `(("python-ipykernel" ,python-ipykernel)
+       ("python-ipywidgets" ,python-ipywidgets)
+       ("python-jupyter-console" ,python-jupyter-console)
+       ("python-nbconvert" ,python-nbconvert)
+       ("python-notebook" ,python-notebook)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page "http://jupyter.org")
+    (synopsis "Web application for interactive documents")
+    (description
+     "The Jupyter Notebook is a web application that allows you to create and
+share documents that contain live code, equations, visualizations and
+explanatory text.  Uses include: data cleaning and transformation, numerical
+simulation, statistical modeling, machine learning and much more.")
+    (license license:bsd-3)))
+
 (define-public python-chardet
   (package
     (name "python-chardet")