Error: No module named 'sagenb'
SageMath is not working on Ubuntu 20.04. When I am going to open notebook interface it show the following errors:
How can I fix this?
SageMath is not working on Ubuntu 20.04. When I am going to open notebook interface it show the following errors:
How can I fix this?
Your banner tells us that you are running a Python 3-based Sage. sagenb
(the classical notebook) is NOT compatible/supportable with Python 3. This incompatibility has been known and published for a long time, and this classicalnotebook has been deprecated for a while...
If you want to use a Python 3-based Sage, you have to use the Jupyter notebook (or another interface, such sage-shell-mode
for emacs
, or the JupyterLab notebook (optional package)).
If you insist on the classical Sage notebook, you have to install a Python 2-based Sage. As far as I can tell, in has been announced that 9.1 would be the last Sage version to support Python 2. Furthermore, I do not know if precompiled Python 2-based package(s) exist(s) for which distribution(s). Last but not least, choosing to stay with Python 2-based Sage entails staying with (at best) Sage 9.1. Since Sage 9.2, the Python 2-specific code is being pruned from Sage source...
BTW : in 9.3.beta2, notebook()
no longer exists...
HTH,
Paraphrasing what I already wrote, you can either install a Python 2-based Sage and stay with it, or renounce the classical Sage notebook.
In other words you can't "fix it".
If you run sage -n
instead of sage
, it will open up the Jupyter notebook, by the way.
@ JohnPalmieri I did according to you, but shows access denied: Access to the file was deniedThe file at file:///home/mks/.local/share/jupyter/runtime/nbserver-9493-open.html is not readable. It may have been removed, moved, or file permissions may be preventing access. ERR_ACCESS_DENIED
Asked: 2020-11-29 05:24:26 -0600
Seen: 54 times
Last updated: Nov 29 '20
3d plots flattened when printing to file
Deleting old users on sagenotebook
How to delete blank text cells
Sagenotebook hangs on arch linux?
Integrate SAGE Jupyter Notebook in Anaconda Python Distribution
How do I log into Sage Notebook 7.2?
VM Virtualbox & sage-7.0.ova: how to start?