sagemath / sage

Main repository of SageMath. Now open for Issues and Pull Requests.
https://www.sagemath.org
Other
1.19k stars 411 forks source link

Meta-ticket: Use system Jupyter notebook / JupyterLab #30306

Open mkoeppe opened 3 years ago

mkoeppe commented 3 years ago

We wish to support all combinations of the following scenarios:

  1. Running notebook installed in SAGE_LOCAL from SPKG
  2. Running notebook installed in the system python, or in some venv unrelated to Sage
  3. Running notebook on a different host (which has no Sage installation), connecting to the Sage Jupyter kernel (using ssh, or https://pypi.org/project/jupyter-kernel-gateway, or ...)

A. Sage-the-distribution B. Distribution packaging of Sage (Debian, Conda, ...) C. Pip-installed sagelib (#30036)

The following data items are relevant:

i. The kernelspec iii. threejs, jsmol, mathjax data iiiii. Built Sage documentation

The following installation locations are relevant:

a. data installed with sagelib within the Sage venv, such as src/sage/ext_data b. data installed within SAGE_LOCAL as part of Sage-the-distribution c. data installed as "resources" associated with the kernelspec, on the host where notebook runs (see jupyter kernelspec list) d. data installed as Jupyter nbextensions on the host where notebook runs (see jupyter nbextension list)

Tickets for Sage 9.2:

Tickets for Sage 9.3:

Tickets for Sage 9.4:

CC: @antonio-rojas @kiwifb @slel @nbruin @paulmasson @egourgoulhon @kwankyu @jcamp0x2a @williamstein @mezzarobba

Component: user interface

Keywords: sd110, sd111

Issue created by migration from https://trac.sagemath.org/ticket/30306

mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -4,7 +4,7 @@

 2. Running `notebook` installed in the system python, or in some venv unrelated to Sage

-3. Running `notebook` on a different host (which has no Sage installation), connecting to the Sage Jupyter kernel
+3. Running `notebook` on a different host (which has no Sage installation), connecting to the Sage Jupyter kernel (using ssh, or https://pypi.org/project/jupyter-kernel-gateway, or ...)

 A. Sage-the-distribution
kwankyu commented 3 years ago

Description changed:

--- 
+++ 
@@ -28,5 +28,4 @@

 - #26919 (Upgrade to Jupyter notebook 5.7.10 or 6.1.0 ....)

-- #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -12,7 +12,23 @@

 C. Pip-installed sagelib (#30036)

+The following data items are relevant:

+i. The kernelspec
+
+iii. threejs, jsmol, mathjax data
+
+iiiii. Built sage documentation
+
+The following installation locations are relevant:
+
+a. data installed with sagelib within the Sage venv, such as `src/sage/ext_data`
+
+b. data installed within `SAGE_LOCAL` as part of Sage-the-distribution 
+
+c. data installed as "resources" associated with the kernelspec, on the host where notebook runs
+
+d. data installed as jupyter nbextensions on the host where notebook runs

 Tickets:
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -26,9 +26,9 @@

 b. data installed within `SAGE_LOCAL` as part of Sage-the-distribution 

-c. data installed as "resources" associated with the kernelspec, on the host where notebook runs
+c. data installed as "resources" associated with the kernelspec, on the host where notebook runs (see `jupyter kernelspec list`)

-d. data installed as jupyter nbextensions on the host where notebook runs
+d. data installed as jupyter nbextensions on the host where notebook runs (see `jupyter nbextension list`)

 Tickets:
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -44,4 +44,5 @@

 - #26919 (Upgrade to Jupyter notebook 5.7.10 or 6.1.0 ....)

+- #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -46,3 +46,5 @@

 - #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)

+- #30315 Switch jsmol to jupyter-jsmol, make jmol optional
+
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -32,6 +32,8 @@

 Tickets:

+- #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
+
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)

 - #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-minimal)
mkoeppe commented 3 years ago

Changed keywords from none to sd110

mkoeppe commented 3 years ago

Changed keywords from sd110 to sd110, sd111

mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -34,6 +34,8 @@

 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab

+- #30972 - Symlinks and system packages
+
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)

 - #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-minimal)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -34,11 +34,11 @@

 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab

-- #30972 - Symlinks and system packages
+- #30972 - Versioned installation of `threejs`

 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)

-- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-minimal)
+- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)

 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -34,6 +34,8 @@

 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab

+- #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
+
 - #30972 - Versioned installation of `threejs`

 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -36,6 +36,8 @@

 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows

+- #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
+
 - #30972 - Versioned installation of `threejs`

 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -30,29 +30,23 @@

 d. data installed as jupyter nbextensions on the host where notebook runs (see `jupyter nbextension list`)

-Tickets:
+Tickets for Sage 9.2:
+
+- #30299 (Minimal fix for broken jupyter notebook)
+- #26919 (Upgrade to Jupyter notebook 5.7.10 or 6.1.0 ....)
+
+Tickets for Sage 9.3:

 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
-
+- #30315 Switch jsmol to jupyter-jsmol, make jmol optional
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
-
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
-
 - #30972 - Versioned installation of `threejs`
-
+- #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
-
 - #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
-
 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
-
 - #30296 (System package information and spkg-configure for mathjax)
-
-- #30299 (Minimal fix for broken jupyter notebook)
-
-- #26919 (Upgrade to Jupyter notebook 5.7.10 or 6.1.0 ....)
-
 - #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)

-- #30315 Switch jsmol to jupyter-jsmol, make jmol optional
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -37,6 +37,7 @@

 Tickets for Sage 9.3:

+- #30903 Fix broken symlink to documentation in the Sage jupyter kernelspec
 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
 - #30315 Switch jsmol to jupyter-jsmol, make jmol optional
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -49,5 +49,5 @@
 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
 - #30296 (System package information and spkg-configure for mathjax)
 - #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)
+- #31278 ipywidgets should not depend on widgetsnbextension

-
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -40,14 +40,19 @@
 - #30903 Fix broken symlink to documentation in the Sage jupyter kernelspec
 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
 - #30315 Switch jsmol to jupyter-jsmol, make jmol optional
+- #31035 Remove mathjax configuration/symlink from jupyter notebook
+- #31328 Upgrade ipywidgets to 7.6.3
+- #31278 ipywidgets should not depend on widgetsnbextension
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
 - #30972 - Versioned installation of `threejs`
 - #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
+- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
+
+Tickets for Sage 9.4:
+
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
-- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
+- #30296 (System package information and spkg-configure for mathjax)
 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
-- #30296 (System package information and spkg-configure for mathjax)
 - #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)
-- #31278 ipywidgets should not depend on widgetsnbextension
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -39,10 +39,11 @@

 - #30903 Fix broken symlink to documentation in the Sage jupyter kernelspec
 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
-- #30315 Switch jsmol to jupyter-jsmol, make jmol optional
+- #30315 Switch jsmol to `jupyter-jsmol`, make jmol optional
 - #31035 Remove mathjax configuration/symlink from jupyter notebook
-- #31328 Upgrade ipywidgets to 7.6.3
-- #31278 ipywidgets should not depend on widgetsnbextension
+- #31279Add package `argon2-cffi` (dependency of Jupyter notebook)
+- #31328 Upgrade `ipywidgets` to 7.6.3
+- #31278 `ipywidgets` should not depend on `widgetsnbextension`
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
 - #30972 - Versioned installation of `threejs`
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -43,7 +43,7 @@
 - #31035 Remove mathjax configuration/symlink from jupyter notebook
 - #31279Add package `argon2-cffi` (dependency of Jupyter notebook)
 - #31328 Upgrade `ipywidgets` to 7.6.3
-- #31278 `ipywidgets` should not depend on `widgetsnbextension`
+- #31278 `widgetsnbextension` should not depend on `notebook`
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
 - #30972 - Versioned installation of `threejs`
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -49,6 +49,7 @@
 - #30972 - Versioned installation of `threejs`
 - #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
+- #31369 Support `jupyter-qtconsole`

 Tickets for Sage 9.4:
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -41,9 +41,10 @@
 - #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
 - #30315 Switch jsmol to `jupyter-jsmol`, make jmol optional
 - #31035 Remove mathjax configuration/symlink from jupyter notebook
-- #31279Add package `argon2-cffi` (dependency of Jupyter notebook)
+- #31279 Add package `argon2-cffi` (dependency of Jupyter notebook)
 - #31328 Upgrade `ipywidgets` to 7.6.3
 - #31278 `widgetsnbextension` should not depend on `notebook`
+- #30383 Add `configure --disable-notebook`
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
 - #30972 - Versioned installation of `threejs`
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -45,15 +45,15 @@
 - #31328 Upgrade `ipywidgets` to 7.6.3
 - #31278 `widgetsnbextension` should not depend on `notebook`
 - #30383 Add `configure --disable-notebook`
+- #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
-- #30972 - Versioned installation of `threejs`
-- #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
-- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
-- #31369 Support `jupyter-qtconsole`

 Tickets for Sage 9.4:

+- #31369 Support `jupyter-qtconsole`
+- #30972 - Versioned installation of `threejs`
+- #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
 - #30296 (System package information and spkg-configure for mathjax)
 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
mkoeppe commented 3 years ago
comment:26

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.

slel commented 3 years ago

Description changed:

--- 
+++ 
@@ -1,44 +1,35 @@
 We wish to support all combinations of the following scenarios:

 1. Running `notebook` installed in `SAGE_LOCAL` from SPKG
-
 2. Running `notebook` installed in the system python, or in some venv unrelated to Sage
-
 3. Running `notebook` on a different host (which has no Sage installation), connecting to the Sage Jupyter kernel (using ssh, or https://pypi.org/project/jupyter-kernel-gateway, or ...)

 A. Sage-the-distribution
-
 B. Distribution packaging of Sage (Debian, Conda, ...)
-
 C. Pip-installed sagelib (#30036)

 The following data items are relevant:

 i. The kernelspec
-
 iii. threejs, jsmol, mathjax data
-
-iiiii. Built sage documentation
+iiiii. Built Sage documentation

 The following installation locations are relevant:

 a. data installed with sagelib within the Sage venv, such as `src/sage/ext_data`
-
 b. data installed within `SAGE_LOCAL` as part of Sage-the-distribution 
-
 c. data installed as "resources" associated with the kernelspec, on the host where notebook runs (see `jupyter kernelspec list`)
-
-d. data installed as jupyter nbextensions on the host where notebook runs (see `jupyter nbextension list`)
+d. data installed as Jupyter nbextensions on the host where notebook runs (see `jupyter nbextension list`)

 Tickets for Sage 9.2:

-- #30299 (Minimal fix for broken jupyter notebook)
-- #26919 (Upgrade to Jupyter notebook 5.7.10 or 6.1.0 ....)
+- #30299 (Minimal fix for broken Jupyter Notebook)
+- #26919 (Upgrade to Jupyter Notebook 5.7.10 or 6.1.0 ....)

 Tickets for Sage 9.3:

-- #30903 Fix broken symlink to documentation in the Sage jupyter kernelspec
-- #30476 - Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in a system jupyter notebook or jupyterlab
+- #30903 Fix broken symlink to documentation in the Sage Jupyter kernelspec
+- #30476 - Doc: Add instructions on how to run the SageMath Jupyter kernel in a system Jupyter Notebook or JupyterLab
 - #30315 Switch jsmol to `jupyter-jsmol`, make jmol optional
 - #31035 Remove mathjax configuration/symlink from jupyter notebook
 - #31279 Add package `argon2-cffi` (dependency of Jupyter notebook)
@@ -47,7 +38,7 @@
 - #30383 Add `configure --disable-notebook`
 - #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
-- #31157 Doc: Add instructions on how to run the [SageMath](../wiki/SageMath) jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
+- #31157 Doc: Add instructions on how to run the SageMath Jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows

 Tickets for Sage 9.4:

@@ -57,5 +48,5 @@
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
 - #30296 (System package information and spkg-configure for mathjax)
 - #30298 (Rewrite jupyter kernel installation code using KernelSpecManager, create kernel install script (entry point))
-- #30313 (Doc: Add instructions how to run a remote [SageMath](../wiki/SageMath) jupyter kernel)
+- #30313 (Doc: Add instructions how to run a remote SageMath jupyter kernel)
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -38,7 +38,7 @@
 - #30383 Add `configure --disable-notebook`
 - #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
-- #31157 Doc: Add instructions on how to run the SageMath Jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows
+- #31157 Doc: Add instructions on how to run the SageMath Jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows (dup: #25850)

 Tickets for Sage 9.4:
mkoeppe commented 3 years ago

Description changed:

--- 
+++ 
@@ -36,13 +36,14 @@
 - #31328 Upgrade `ipywidgets` to 7.6.3
 - #31278 `widgetsnbextension` should not depend on `notebook`
 - #30383 Add `configure --disable-notebook`
-- #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
+- #31620 Document installing sagemath kernel without copying documentation
 - #31156 - Doc: Add instructions how to run Sage + Jupyter notebook in WSL, browser in Windows
 - #31157 Doc: Add instructions on how to run the SageMath Jupyter kernel in WSL, add as a kernel to Jupyter running natively in Windows (dup: #25850)

 Tickets for Sage 9.4:

 - #31369 Support `jupyter-qtconsole`
+- #31179 - Add package `ipympl` - Makes interactive features of matplotlib available also in JupyterLab
 - #30972 - Versioned installation of `threejs`
 - #30123 (Repackage Sage's cropped threejs as a pip-installable package jupyter-threejs-sage)
 - #30124 (System information, spkg-configure for Jupyter "notebook" package and dependencies)
mkoeppe commented 4 months ago

@dimpase Reminder that this issue is still open and does not simply go away by demands to remove packaging for Jupyter.