-
-
Notifications
You must be signed in to change notification settings - Fork 720
Description
TL:DR : Sage's Jupyter cannot use a systemwide R IRkernel (correctly installed and usable from a systemwide jupyter notebook).
Current situation :
- Sage 9.2.beta4 compiled on Linux (Debian testing) from the source tree, configured to use systemwide packages (including R).
- Jupyter : installed from Debian packages
- jupyter core : 4.6.3
- jupyter-notebook : 6.0.3
- R: 4.0.2, as obtained from Debian testing.
- IRkernel : 1.1, installed from CRAN
Kernels:
charpent@zen-book-flip:~$ jupyter kernelspec list
Available kernels:
ir /usr/local/share/jupyter/kernels/ir
python3 /usr/share/jupyter/kernels/python3
charpent@zen-book-flip:~$ sage -jupyter kernelspec list
Available kernels:
python3 /usr/local/sage-9/local/share/jupyter/kernels/python3
sagemath /usr/local/sage-9/local/share/jupyter/kernels/sagemath
ir /usr/local/share/jupyter/kernels/ir
Symptoms :
- On the systemwide Jupyter notebook (started with
jupyter notebook], the R kernel behaves normally :- R appears on the list of available kernelsa new tab
- an R sheet can be created from the relevant menu, behaves normally, and can be saved/reopened.
- On the Sage notebook (
sage -n jupyter) :- R appears on the list of available kernels
- when (attempting to) create a new sheet :
- the browser switches to a new tab, thar remains empty
- Nothing else happens
- When closing this new tab and switching back to Jupyter's "directory" tab, a new file ("Untitled.ipynb") is listed as having been created.
Attempts to install the r_jupyter spkg failed :
- As a normal user : because it can't write to the systemwide R library, owned by
root - As root, because Sage can't be built by a privileged user.
The availability of R from Sage's notebook should reduce the need for the systemwide Jupyter(ditto for the other Sage-created Jupyter kernels).
Alternatively, the availability of the Sage kernel from the systemwide notebook would reduce (eliminate ?) the need for Sages's Jupyter (this currently fails, the documentation can't be found during kernel's installation).
//Sidenote :// the r_jupyter spkg downloads the Github version of IRkernel. This is outdated, IRkernel being on CRAN since late 2019 : this version should probably be preferred, if only for stability/availability reasons
Depends on #30124
Component: notebook
Issue created by migration from https://trac.sagemath.org/ticket/30120