Patchwork [14/16] gnu: Add python-jupyter-console.

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

Comments

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

> * gnu/packages/python.scm (python-jupyter-console,
> python2-jupyter-console): New variable.
> ---
>  gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 50a0edd..519b93d 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -6914,6 +6914,35 @@ in the data.")
>  (define-public python2-ipywidgets
>    (package-with-python2 python-ipywidgets))
>  
> +(define-public python-jupyter-console
> +  (package
> +    (name "python-jupyter-console")
> +    (version "5.0.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "jupyter_console" version))
> +       (sha256
> +        (base32
> +         "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
> +    (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-ipython" ,python-ipython)
> +       ("python-jupyter-client" ,python-jupyter-client)
> +       ("python-prompt-toolkit" ,python-prompt-toolkit)
> +       ("python-pygments" ,python-pygments)
> +       ("python-setuptools" ,python-setuptools)))
> +    (home-page "https://jupyter.org")
> +    (synopsis "Jupyter terminal console")
> +    (description "Jupyter terminal console")

How about:
"This package provides a terminal window in the browser to directly
access the machine Jupyter is running on."

> +    (license license:bsd-3)))
> +
> +(define-public python2-jupyter-console
> +  (package-with-python2 python-jupyter-console))
> +
>  (define-public python-chardet
>    (package
>      (name "python-chardet")

Otherwise LGTM.

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

> Ricardo Wurmus writes:
>
>> * gnu/packages/python.scm (python-jupyter-console,
>> python2-jupyter-console): New variable.
>> ---
>>  gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
>>  1 file changed, 29 insertions(+)
>>
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index 50a0edd..519b93d 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -6914,6 +6914,35 @@ in the data.")
>>  (define-public python2-ipywidgets
>>    (package-with-python2 python-ipywidgets))
>>  
>> +(define-public python-jupyter-console
>> +  (package
>> +    (name "python-jupyter-console")
>> +    (version "5.0.0")
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (pypi-uri "jupyter_console" version))
>> +       (sha256
>> +        (base32
>> +         "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
>> +    (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-ipython" ,python-ipython)
>> +       ("python-jupyter-client" ,python-jupyter-client)
>> +       ("python-prompt-toolkit" ,python-prompt-toolkit)
>> +       ("python-pygments" ,python-pygments)
>> +       ("python-setuptools" ,python-setuptools)))
>> +    (home-page "https://jupyter.org")
>> +    (synopsis "Jupyter terminal console")
>> +    (description "Jupyter terminal console")
>
> How about:
> "This package provides a terminal window in the browser to directly
> access the machine Jupyter is running on."

Oh, I forgot to edit the description here.  I’ve changed it to this:

    "This package provides a terminal-based console frontend for Jupyter
     kernels.  It also allows for console-based interaction with
     non-Python Jupyter kernels such as IJulia and IRKernel."

~~ Ricardo
Roel Janssen - Nov. 4, 2016, 5:40 p.m.
Ricardo Wurmus writes:

> Roel Janssen <roel@gnu.org> writes:
>
>> Ricardo Wurmus writes:
>>
>>> * gnu/packages/python.scm (python-jupyter-console,
>>> python2-jupyter-console): New variable.
>>> ---
>>>  gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
>>>  1 file changed, 29 insertions(+)
>>>
>>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>>> index 50a0edd..519b93d 100644
>>> --- a/gnu/packages/python.scm
>>> +++ b/gnu/packages/python.scm
>>> @@ -6914,6 +6914,35 @@ in the data.")
>>>  (define-public python2-ipywidgets
>>>    (package-with-python2 python-ipywidgets))
>>>  
>>> +(define-public python-jupyter-console
>>> +  (package
>>> +    (name "python-jupyter-console")
>>> +    (version "5.0.0")
>>> +    (source
>>> +     (origin
>>> +       (method url-fetch)
>>> +       (uri (pypi-uri "jupyter_console" version))
>>> +       (sha256
>>> +        (base32
>>> +         "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
>>> +    (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-ipython" ,python-ipython)
>>> +       ("python-jupyter-client" ,python-jupyter-client)
>>> +       ("python-prompt-toolkit" ,python-prompt-toolkit)
>>> +       ("python-pygments" ,python-pygments)
>>> +       ("python-setuptools" ,python-setuptools)))
>>> +    (home-page "https://jupyter.org")
>>> +    (synopsis "Jupyter terminal console")
>>> +    (description "Jupyter terminal console")
>>
>> How about:
>> "This package provides a terminal window in the browser to directly
>> access the machine Jupyter is running on."
>
> Oh, I forgot to edit the description here.  I’ve changed it to this:
>
>     "This package provides a terminal-based console frontend for Jupyter
>      kernels.  It also allows for console-based interaction with
>      non-Python Jupyter kernels such as IJulia and IRKernel."

Nice!

Kind regards,
Roel Janssen
Hartmut Goebel - Nov. 4, 2016, 5:49 p.m.
Am 04.11.2016 um 17:47 schrieb Ricardo Wurmus:
> Oh, I forgot to edit the description here.

I was already wondering :-)
>   I’ve changed it to this:
>
>     "This package provides a terminal-based console frontend for Jupyter
>      kernels.  It also allows for console-based interaction with
>      non-Python Jupyter kernels such as IJulia and IRKernel."

LGTM

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 50a0edd..519b93d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6914,6 +6914,35 @@  in the data.")
 (define-public python2-ipywidgets
   (package-with-python2 python-ipywidgets))
 
+(define-public python-jupyter-console
+  (package
+    (name "python-jupyter-console")
+    (version "5.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jupyter_console" version))
+       (sha256
+        (base32
+         "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
+    (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-ipython" ,python-ipython)
+       ("python-jupyter-client" ,python-jupyter-client)
+       ("python-prompt-toolkit" ,python-prompt-toolkit)
+       ("python-pygments" ,python-pygments)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page "https://jupyter.org")
+    (synopsis "Jupyter terminal console")
+    (description "Jupyter terminal console")
+    (license license:bsd-3)))
+
+(define-public python2-jupyter-console
+  (package-with-python2 python-jupyter-console))
+
 (define-public python-chardet
   (package
     (name "python-chardet")