Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #9592

Re: IPython/Jupyter plans for buster

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Ximin Luo <infinity0@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: IPython/Jupyter plans for buster
Date Tue, 27 Jun 2017 18:40:02 +0200
Message-ID <tX1GV-35M-13@gated-at.bofh.it> (permalink)
References <tVU4N-qf-15@gated-at.bofh.it> <tWlRo-NX-11@gated-at.bofh.it> <tWCpc-2Xw-37@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Jun 27 16:39:10 2017
Old-Return-Path <infinity0@debian.org>
X-Amavis-Spam-Status No, score=-6.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5
X-Greylist delayed 161369 seconds by postgrey-1.35 at bendel; Tue, 27 Jun 2017 16:21:04 UTC
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=headstrong.de; h=content-transfer-encoding:content-type:content-type :in-reply-to:mime-version:date:date:message-id:from:from :references:subject:subject:received; s=mail; t=1498580444; x= 1500394845; bh=lz7lWBuKSfMmsdXeHdNwGkBn/Qoxk7N2ZjpHW78fhgA=; b=Z kV/6dgyRhC/ZtC6oOPeb67It2Wql7bMJrDizOqcT/PYQYdjxIFcJNCti8lYHi8UB XUDd+99jG6HfFFXjpSBAEt3T6Z5qZprqHOWqfHu2dxxuDVzGWVVcAPtv91RjCSRi FgIDxjRbvEP56kraXIfyFkB0H1ZUc2P/thDkEC5C9g=
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/14970
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/29031336-6d93-29f6-580a-d35ed7a22f76@debian.org
Approved robomod@news.nic.it
Lines 61
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org, Julien Puydt <julien.puydt@laposte.net>
X-Original-Date Tue, 27 Jun 2017 16:20:00 +0000
X-Original-Message-ID <29031336-6d93-29f6-580a-d35ed7a22f76@debian.org>
X-Original-References <0820f573-be22-21e9-b369-a0e247106697@chronitis.net> <77dba84d-cb87-78f2-977b-edd7895030e8@debian.org> <alpine.DEB.2.20.1706261303020.10442@emissary.chronitis.net>
Xref csiph.com linux.debian.maint.python:9592

Show key headers only | View raw


Gordon Ball:
> I don't have more information than was in the [1] link below, but my reading of it is:
> 
> ----8<----
> 
> All ipython/jupyter components will drop python 2.7 support from version 6.
> 
> For ipython, ipykernel and dependencies ipython-genutils, traitlets the current, python-2.7 supporting branch gets extended support until July 2019 (needed to run user-level python 2.7 code).
> 
> For components the user is meant to use as an application rather than an importable library (notebook, nbconvert) there will be no extended python 2 support.
> 
> For components which might be useful to other projects (jupyter-core, jupyter-client, nbformat) there *might* be extended support of the current branch, but it isn't clear.
> 
> ----8<----
> 
> I think we want to follow the same strategy: keep support for running python 2 code in interactive sessions and notebooks as long as possible, but for other parts like the notebook server which the user is not expected to import from, we drop python 2 support when upstream no longer provides it.
> 
> Which interfaces in jupyter does sagemath use? Is it just a kernel or does it import directly from notebook/nbformat/nbconvert, etc?
> 

SageMath heavily imports from IPython, ipykernel, ipywidgets, but imports from the "notebook" at only two points, as far as I can tell:

src/bin/sage-notebook:        from notebook.notebookapp import main
src/sage/repl/ipython_kernel/install.py:        from notebook.notebookapp import NotebookApp

The second one is a dependency check, that would be easy to patch out in Debian.

The first one would take a bit more work since it's a public-facing interface that "sage -n jupyter" should start up the app. We'd have to patch it so that the Sage python2 process calls an external python3 process, probably.

This assumes the Sage kernel would still work with a python3-only notebook... I certainly hope so, if jupyter upstream are ready to drop the python2 notebook so quickly...

There is also this:

src/sage/repl/ipython_kernel/install.py:from jupyter_core.paths import ENV_JUPYTER_PATH

which would also be easy to patch out in Debian, by hard-coding directly with the actual path.

> When you say (2), since I failed to number them originally, I think you meant:
> 
>     split ipython source package,
>     python-ipython stays as version 5.x,
>     python3-ipython gets version 6.x from a new source package
> 
> (correct?)
> 

Yes, that's what I meant.

X

>>> [..]
>>>
>>> [1]:
>>> https://github.com/jupyter/roadmap/blob/master/accepted/migration-to-python-3-only.md
>>> [2]: http://www.python3statement.org/
>>>

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

IPython/Jupyter plans for buster Gordon Ball <gordon@chronitis.net> - 2017-06-24 16:20 +0200
  Re: IPython/Jupyter plans for buster Ximin Luo <infinity0@debian.org> - 2017-06-25 22:00 +0200
    Re: IPython/Jupyter plans for buster Gordon Ball <gordon@chronitis.net> - 2017-06-26 15:40 +0200
      Re: IPython/Jupyter plans for buster Ximin Luo <infinity0@debian.org> - 2017-06-27 18:40 +0200
        Re: IPython/Jupyter plans for buster Julien Puydt <julien.puydt@laposte.net> - 2017-06-27 19:00 +0200

csiph-web