Ask Your Question
2

pdflatex not available from Jupyter in SageMath-8.1.app

asked 2018-06-07 12:06:55 +0100

Pascal Weil gravatar image

I am using SageMath-8.1.app with OSX 10.13.5 and pdflatex is available on my system:

(sage-sh) :SageMath-8.1.app$ which pdflatex
/Library/TeX/texbin/pdflatex

But in Jupyter, pdf latex is not available:

view(g)
Error: PDFLaTeX does not seem to be installed.  Download it from
ctan.org and try again.
Latex error

also:

!pdflatex
/bin/sh: pdflatex: command not found

Here is the value of PATH:

import os
os.environ['PATH']
'/Applications/SageMath-8.1.app/Contents/Resources/sage/local/libexec/ccache:/Applications/SageMath-8.1.app/Contents/Resources/sage/build/bin:/Applications/SageMath-8.1.app/Contents/Resources/sage/src/bin:/Applications/SageMath-8.1.app/Contents/Resources/sage/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'

How to modify the PATH of the app?

edit retag flag offensive close merge delete

Comments

Sébastien gravatar imageSébastien ( 2018-06-07 20:57:53 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-06-07 16:58:08 +0100

j.c. gravatar image

There are some suggestions in this question.

However, the easiest thing to do might be to create a sagerc file per this page (I guess the default location is ~/.sage/sagerc) containing: export PATH = "$PATH:/Library/TeX/texbin/pdflatex"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-06-07 12:06:55 +0100

Seen: 1,097 times

Last updated: Jun 07 '18