Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Adding path entries in kernel.json does not work

According to comment 5 at https://trac.sagemath.org/ticket/31773, the following edited kernel.json ought to make both octave and Macaulay2's M2 available to the jupyter kernel in a SageMath jupyter notebook session:

{"argv": ["/var/tmp/sage-9.6-current/venv/bin/sage", "--python", "-m", "sage.repl.ipython_kernel", "-f", "{connection_file}"], "display_name": "SageMath 9.6", "language": "sage", "env": {"PATH":"/Applications/Macaulay2-1.20/bin:/opt/local/bin:$PATH"}}

Nonetheless, after this change and a fresh restart of SageMath-9.6.app, neither octave nor macaulay2 work there.

Environment: SageMath-9.6-1.4.2 arm64 version under macOs 12.5.1 on an M1 Mac.

How fix?

Related:

https://ask.sagemath.org/question/7949/running-octave-from-the-sage-notebook/?answer=28684#post-id-28684

https://ask.sagemath.org/question/63845/how-reach-octave-or-macaulay2-from-sage-notebook/