How To Install python-sagenb on Debian 10

Learn how to install python-sagenb on Debian 10 with this tutorial. python-sagenb is Standalone Sage Notebook

Introduction

In this tutorial we learn how to install python-sagenb on Debian 10.

What is python-sagenb

python-sagenb is:

The Sage Notebook is a web-based graphical user interface for mathematical software.

Sage is a different approach to mathematics software. It makes it easy for you to use most mathematics software together. Sage includes GAP, GP/PARI, Maxima, and Singular, and dozens of other open source math packages. It aims to be a viable open source alternative to Magma, Maple, Mathematica, and MATLAB.

With the Sage Notebook anyone can create, collaborate on, and publish interactive worksheets. In a worksheet, one can write code using Sage, Python, and other software included in Sage. You can write programs that combine serious mathematics with anything else.

Most of the notebook does not depend on having Sage installed. Only a few miscellaneous functions are imported from Sage.

Unfortunately these few imports are still a circular dependency that upstream never got around to fixing, mean that one cannot “import sagenb” unless sage is also installed.

There are three methods to install python-sagenb on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-sagenb Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-sagenb using apt-get by running the following command:

sudo apt-get -y install python-sagenb

Install python-sagenb Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-sagenb using apt by running the following command:

sudo apt -y install python-sagenb

Install python-sagenb Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-sagenb using aptitude by running the following command:

sudo aptitude -y install python-sagenb

How To Uninstall python-sagenb on Debian 10

To uninstall only the python-sagenb package we can use the following command:

sudo apt-get remove python-sagenb

Uninstall python-sagenb And Its Dependencies

To uninstall python-sagenb and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-sagenb

Remove python-sagenb Configurations and Data

To remove python-sagenb configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-sagenb

Remove python-sagenb configuration, data, and all of its dependencies

We can use the following command to remove python-sagenb configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-sagenb

Dependencies

python-sagenb have the following dependencies:

References

Summary

In this tutorial we learn how to install python-sagenb package on Debian 10 using different package management tools: apt, apt-get and aptitude.