* [ISSUE] Sagemath jupyter notebook not working
@ 2023-09-26 7:28 Eloitor
2023-09-26 17:46 ` dkwo
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: Eloitor @ 2023-09-26 7:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1926 bytes --]
New issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261
Description:
### Is this a new report?
Yes
### System Info
Void 6.5.5_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFFFFFFFFFFFFFFFF
### Package(s) Affected
sagemath-10.1_3
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
```
sage -n jupyter
```
Opens a jupyter notebook.
### Actual behaviour
```
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.1, Release Date: 2023-08-20 │
│ Using Python 3.11.5. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
Traceback (most recent call last):
File "/usr/lib/sagemath/10.1/bin/sage-notebook", line 32, in __init__
from notebook.notebookapp import main
ModuleNotFoundError: No module named 'notebook.notebookapp'
The Jupyter notebook is not installed (at least not in this Sage installation).
You can install it by running
sage -i notebook
Alternatively, you can follow the instructions at
https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
to use Sage with an existing Jupyter notebook installation.
```
But `sage -i notebook` doesn't work either.
```
Error: unknown option: -i
```
### Steps to reproduce
1. Install `sagemath`.
2. Run `sage -n jupyter`.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
@ 2023-09-26 17:46 ` dkwo
2023-10-05 12:02 ` Eloitor
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2023-09-26 17:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1736007372
Comment:
could you try #44160 ?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
2023-09-26 17:46 ` dkwo
@ 2023-10-05 12:02 ` Eloitor
2023-10-10 17:38 ` dkwo
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-05 12:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1459 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1748746675
Comment:
Thanks! I tried and I got:
```
$ sage -n jupyter
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.1, Release Date: 2023-08-20 │
│ Using Python 3.11.5. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
Traceback (most recent call last):
File "/usr/lib/sagemath/10.1/bin/sage-notebook", line 32, in __init__
from notebook.notebookapp import main
ModuleNotFoundError: No module named 'notebook.notebookapp'
The Jupyter notebook is not installed (at least not in this Sage installation).
You can install it by running
sage -i notebook
Alternatively, you can follow the instructions at
https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
to use Sage with an existing Jupyter notebook installation.
```
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
2023-09-26 17:46 ` dkwo
2023-10-05 12:02 ` Eloitor
@ 2023-10-10 17:38 ` dkwo
2023-10-10 21:48 ` Eloitor
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2023-10-10 17:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1755930437
Comment:
can you test with `jupyter lab` ?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (2 preceding siblings ...)
2023-10-10 17:38 ` dkwo
@ 2023-10-10 21:48 ` Eloitor
2023-10-11 14:55 ` dkwo
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-10 21:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1756316000
Comment:
```
$ jupyter lab
Traceback (most recent call last):
File "/usr/bin/jupyter-lab", line 5, in <module>
from jupyterlab.labapp import main
ModuleNotFoundError: No module named 'jupyterlab'
```
I have `jupyterlab` installed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (3 preceding siblings ...)
2023-10-10 21:48 ` Eloitor
@ 2023-10-11 14:55 ` dkwo
2023-10-16 22:19 ` Eloitor
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dkwo @ 2023-10-11 14:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1757878125
Comment:
is the system up to date?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (4 preceding siblings ...)
2023-10-11 14:55 ` dkwo
@ 2023-10-16 22:19 ` Eloitor
2023-10-16 22:27 ` Eloitor
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-16 22:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 300 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1765362301
Comment:
Yes it is... I have it working in 2 computers, but it keeps failing in another one. I tried forcing reinstalling jupyter related packages without success...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (5 preceding siblings ...)
2023-10-16 22:19 ` Eloitor
@ 2023-10-16 22:27 ` Eloitor
2023-10-17 11:10 ` tornaria
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-16 22:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1765370646
Comment:
I had to force the reinstall of some packages, maybe I had a problem with the update to python 3.12....
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (6 preceding siblings ...)
2023-10-16 22:27 ` Eloitor
@ 2023-10-17 11:10 ` tornaria
2023-10-17 20:25 ` Eloitor
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tornaria @ 2023-10-17 11:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1766194368
Comment:
> ```
> $ jupyter lab
> Traceback (most recent call last):
> File "/usr/bin/jupyter-lab", line 5, in <module>
> from jupyterlab.labapp import main
> ModuleNotFoundError: No module named 'jupyterlab'
> ```
>
> I have `jupyterlab` installed.
This doesn't make sense, since `/usr/bin/jupyter-lab` and `/usr/lib/python3.12/site-packages/jupyterlab/labapp.py` are both in the same package `jupyterlab`. Do you have all those files?
Unless you are messing with virtual envs, pip, pipx, `PYTHONPATH`, etc.
Maybe try removing everything and reinstalling.
For the time being `sage -n jupyter` doesn't work, but it should be the same as running `jupyter notebook` or `jupyter lab`.
In case this is leftover stuff from a local build, try `xpkg -L` to show if you have packages installed locally (e.g. maybe you have `jupyterlab` built for python 3.11). Use `xi -f` to force install packages so you get the versions from the void repos.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (7 preceding siblings ...)
2023-10-17 11:10 ` tornaria
@ 2023-10-17 20:25 ` Eloitor
2023-10-17 20:25 ` [ISSUE] [CLOSED] " Eloitor
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-17 20:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1767115613
Comment:
Solved, I got this error message:
```
Gtk-Message: 20:21:17.013: Failed to load module "canberra-gtk-module"
```
I reinstalled `libcanberra` and `libcanberra-gtk` and it finally worked. No idea what was happening.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ISSUE] [CLOSED] Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (8 preceding siblings ...)
2023-10-17 20:25 ` Eloitor
@ 2023-10-17 20:25 ` Eloitor
2024-01-07 9:10 ` narodnik
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Eloitor @ 2023-10-17 20:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]
Closed issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/46261
Description:
### Is this a new report?
Yes
### System Info
Void 6.5.5_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFFFFFFFFFFFFFFFF
### Package(s) Affected
sagemath-10.1_3
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
```
sage -n jupyter
```
Opens a jupyter notebook.
### Actual behaviour
```
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.1, Release Date: 2023-08-20 │
│ Using Python 3.11.5. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
Traceback (most recent call last):
File "/usr/lib/sagemath/10.1/bin/sage-notebook", line 32, in __init__
from notebook.notebookapp import main
ModuleNotFoundError: No module named 'notebook.notebookapp'
The Jupyter notebook is not installed (at least not in this Sage installation).
You can install it by running
sage -i notebook
Alternatively, you can follow the instructions at
https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
to use Sage with an existing Jupyter notebook installation.
```
But `sage -i notebook` doesn't work either.
```
Error: unknown option: -i
```
### Steps to reproduce
1. Install `sagemath`.
2. Run `sage -n jupyter`.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (9 preceding siblings ...)
2023-10-17 20:25 ` [ISSUE] [CLOSED] " Eloitor
@ 2024-01-07 9:10 ` narodnik
2024-01-07 13:06 ` tornaria
2024-01-07 13:07 ` tornaria
12 siblings, 0 replies; 14+ messages in thread
From: narodnik @ 2024-01-07 9:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
New comment by narodnik on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1880000296
Comment:
I had to install jupyter, python3-jupyter_notebook and I also [did these commands](https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation), then it worked for me.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (10 preceding siblings ...)
2024-01-07 9:10 ` narodnik
@ 2024-01-07 13:06 ` tornaria
2024-01-07 13:07 ` tornaria
12 siblings, 0 replies; 14+ messages in thread
From: tornaria @ 2024-01-07 13:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1880055219
Comment:
> I had to install jupyter, python3-jupyter_notebook and I also [did these commands](https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation), then it worked for me.
But you shouldn't do that if you use the `sagemath` package in the void repo, which already includes a jupyter kernel spec. Watch out that you don't have an older `sagemath` kernel installed in your home directory as that might override the system one.
System kernels are installed in `/usr/share/jupyter/kernels`, and user kernels are installed in `~/.local/share/jupyter/kernels/`.
Easiest way to try is to run `jupyter console --kernel=sagemath`. This should print the banner for the correct version of sagemath. Inside sage check the value of `SAGE_LOCAL` which should be `/usr` for system install of sagemath, and something else for a sage compiled from sources on your own.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Sagemath jupyter notebook not working
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
` (11 preceding siblings ...)
2024-01-07 13:06 ` tornaria
@ 2024-01-07 13:07 ` tornaria
12 siblings, 0 replies; 14+ messages in thread
From: tornaria @ 2024-01-07 13:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/issues/46261#issuecomment-1880055526
Comment:
This is what I mean:
```
$ jupyter console --kernel=sagemath
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
Jupyter console 6.6.3
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.2, Release Date: 2023-12-03 │
│ Using Python 3.12.1. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
In [1]: SAGE_LOCAL
Out[1]: '/usr'
In [2]:
```
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-01-07 13:07 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 7:28 [ISSUE] Sagemath jupyter notebook not working Eloitor
2023-09-26 17:46 ` dkwo
2023-10-05 12:02 ` Eloitor
2023-10-10 17:38 ` dkwo
2023-10-10 21:48 ` Eloitor
2023-10-11 14:55 ` dkwo
2023-10-16 22:19 ` Eloitor
2023-10-16 22:27 ` Eloitor
2023-10-17 11:10 ` tornaria
2023-10-17 20:25 ` Eloitor
2023-10-17 20:25 ` [ISSUE] [CLOSED] " Eloitor
2024-01-07 9:10 ` narodnik
2024-01-07 13:06 ` tornaria
2024-01-07 13:07 ` tornaria
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).