How to set the preferred kernel?

asked 2024-08-22 15:01:55 +0200

mlv gravatar image

updated 2024-08-26 11:15:48 +0200

FrédéricC gravatar image

Everytime after I upgrade Sagemath (say from 10.3 to 10.4); I cant open the original notebook without going through two dialog clicks: (1) Acknowledge Error of starting kerne, (2) Select a new kernel.

It seems that Sagemath supports preferred kernel in the second dialog click. Where do I set the preferred kernel so it always automatically open a notebook with the latest version of kernel?

edit retag flag offensive close merge delete

Comments

What is your platform ? How do you start Sage ? And how did you install Sage ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2024-08-22 16:00:18 +0200 )edit

I use MacOS, I download the binary file SageMath-10.4_arm64.dmg from: https://github.com/3-manifolds/Sage_m... and click the downloaded file, the installation is then automatic.

mlv gravatar imagemlv ( 2024-08-22 16:15:56 +0200 )edit

What is returned when typing sage -sh -c 'jupyter kernelspec list' in a terminal ? Is that the correct kernel ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2024-08-23 08:46:30 +0200 )edit

Available kernels: python3 /private/var/tmp/sage-10.4-current/venv/lib/python3.12/site-packages/ipykernel/resources sagemath-10.4 /private/var/tmp/sage-10.4-current/venv/share/jupyter/kernels/SageMath-10.4 sagemath-10.1 /usr/local/share/jupyter/kernels/SageMath-10.1 sagemath-10.2 /usr/local/share/jupyter/kernels/SageMath-10.2

I just deleted the two folders SageMath-10.1 and SageMath-10.2:

Available kernels:
  python3          /private/var/tmp/sage-10.4-current/venv/lib/python3.12/site-packages/ipykernel/resources
  sagemath-10.4    /private/var/tmp/sage-10.4-current/venv/share/jupyter/kernels/SageMath-10.4

I restarted SageMath, and it still wont automatically use SageMath-10.4 when I open a old noteboo

mlv gravatar imagemlv ( 2024-08-23 17:40:46 +0200 )edit

@mlv : this seems to be Mac-specific (the "applications" in Mac OS parlance are "something different"), in which case I'm unable to help you (I won't touch OS X with a ten foot pole...).

Your best bet is to ask for help on sage-support.

Sorry for wasting your time...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2024-08-23 20:42:47 +0200 )edit