Thank you so much!  I’m almost there.

Isuru’s suggestion of using conda looked like it might be the simplest 
thing, but Nils’ post was very informative.  I’m learning good stuff.  
Massive thanks to both of you!

So I installed conda, which installed Python 3.8.  I couldn’t then Sage 
9.1, which requires at most Python 3.7, so I followed instructions at 
docs.sagemath.org and Isuru’s instructions:

conda create -n sage sage python=3.7

conda activate sage

conda install pari_jupyter

sage -notebook jupyter

This does just what I want.  It lets me open jupyter notebooks and move 
back and forth between sage and gp kernels, which appear in the list of 
kernels at the top of the notebook.  I did a little dance.

conda install gap

This had a small glitch.  gap seems to be compatible only with sage 9.0 and 
below, so the sage installation got downgraded.  OK, not a big problem.

conda install r-irkernel

The R kernel now appears in the list of kernels in the Jupyter notebook, *but 
the R kernel doesn't work*.  I can open a notebook that says it is using 
the R kernel.  The “kernel starting, please wait” button stays lit for a 
long time, but it eventually goes off.  There’s a button saying “R” with a 
filled circle next to which says “kernel connected” when I hover over it.  
If I then type an R command, though, the line number stays at [*], and the 
command never runs.

Any ideas?

For anybody who’s still here and interested, here are some of the terminal 
error messages:

(sage) $ sage -notebook jupyter

…stuff…

[E 12:45:47.668 NotebookApp] Could not open static file ''

[W 12:45:47.746 NotebookApp] 404 GET 
/static/components/react/react-dom.production.min.js (::1) 11.12ms 
referer=http://localhost:8888/tree?token=4a282eb161cdecf2ed39967452d18ce894d4d45ce625ee6b

[I 12:46:24.906 NotebookApp] Creating new notebook in 

[W 12:46:25.389 NotebookApp] 404 GET 
/static/components/react/react-dom.production.min.js (::1) 1.69ms 
referer=http://localhost:8888/notebooks/Untitled2.ipynb?kernel_name=ir

[I 12:46:25.860 NotebookApp] Kernel started: 
ba682ba3-5032-4dc7-a549-088b9b5da955

Error in library.dynam(lib, package, package.lib) : 

  shared object ‘digest.dylib’ not found

Calls: :: ... loadNamespace -> namespaceImport -> loadNamespace -> 
library.dynam

Execution halted

…that got repeated 4 times, then…

[W 12:46:40.899 NotebookApp] KernelRestarter: restart failed

[W 12:46:40.899 NotebookApp] Kernel ba682ba3-5032-4dc7-a549-088b9b5da955 
died, removing from map.

[W 12:47:25.925 NotebookApp] Timeout waiting for kernel_info reply from 
ba682ba3-5032-4dc7-a549-088b9b5da955

[E 12:47:25.927 NotebookApp] Error opening stream: HTTP 404: Not Found 
(Kernel does not exist: ba682ba3-5032-4dc7-a549-088b9b5da955)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/cb98a1af-f81e-4cc5-be33-368f30e96a36o%40googlegroups.com.

Reply via email to