Hi, I am trying to write sagemath code in jupyter. And I use vscode as the editor to write code.
But when I select the sage math as my interpreter (In vscode I press Ctrl+shift+P
and select Python:Select Interpreter
, then enter the path of my sagemath, ./pkg/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/sage
). I faced the error Failed to start the Kernel. The kernel died. Error: ... View Jupyter log for further details.
The log is like this:
...
info 13:59:43.814: Process Execution: > ~/pkg/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/sage -c "import ipykernel"
~/pkg/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/sage -c "import ipykernel" info 13:59:43.954: Got empty env vars with python /home/tours/pkg/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/sage in 150ms
I have tried reinstall the pyzmq and jupyter by pip3, but it doesn't work.
Is there any suggestions? Thanks for your advice!