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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-11-29 12:24:26 +0100
Seen: 636 times
Last updated: Nov 29 '20
evaluation button in sage notebook 6.4
Sage notebook doesn't work [solved]
How to delete blank text cells
Attaching files in notebook does not update contents
How do I register so I can use the Sage Notebooks
Changes in figure HTML layout in 6.5?
How to copy notebook worksheet data from one computer to another