Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Alternatively you can download the last version of sagemath from it official web, then 8after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip to some folder, this would be the installation folder of sagemath

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then 8after (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip to some folder, this would be the installation folder of sagemath

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip that contains sage that you just had downloaded to some folder, this would be the installation folder of sagemathsagemath.

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip that contains sage that you just had downloaded to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do it with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip that contains sage that you just had downloaded to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do it with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where folder-of-sage/folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"folder-of-sage"}
    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the .tar or .zip file that contains sage that you just had downloaded to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.

  3. Now you need to install the sage kernel to jupyter, you can do it with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where /folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the file that contains sage to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter, you can do it using conda or (better IMO) installing it directly in your system, what already have python installed.jupyter.

  3. Now you need to install the sage kernel to jupyter, you can do it with this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where /folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the file that contains sage to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter.

  3. Now you need to install add the sage kernel to jupyter, you can do it with jupyter running this command in the terminal (assuming that jupyter is available in your path):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where /folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the file that contains sage to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter.

  3. Now you need to add the sage kernel to jupyter running this command in the terminal (assuming that jupyter is available in your path):PATH):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where /folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)

Alternatively you can download the last version of sagemath from it official web, then (after you have cleaned your not working installation of sage, say you have uninstalled it) you can do the following:

  1. Extract the file that contains sage to some folder, this would be the installation folder of sagemath.

  2. Install (if it is not already installed) jupyter.

  3. Now you need to add the sage kernel to jupyter running this command in the terminal (assuming that jupyter is available in your PATH):

     jupyter kernelspec install --user /folder-of-sage/local/share/jupyter/kernels/sagemath
    

    where /folder-of-sage is the direction of the folder where you have extracted sage.

  4. Now run in the terminal jupyter kernelspec list, this gives a list of the installed kernels of jupyter and the folder where each kernel was installed. Then open the folder where the kernel of sage was installed and in the kernel.json file that you will find there there, open it with some text editor and add the following just before the last }

    ,"env":{"SAGE_ROOT":"/folder-of-sage"}
    

    Finally save the file and close it.

And this is all. Now you can open jupyter (or jupyter lab) and find that the kernel of sage is installed and works correctly (to run jupyter you can run jupyter lab in a terminal.)