Ask Your Question
2

Jupyter Notebook and "File/Download as/pdf" not working

asked 2022-02-11 17:40:41 +0200

ulgr gravatar image

updated 2022-02-11 21:18:10 +0200

FrédéricC gravatar image

I can run jupyter > nbconvert SageTest.ipynb --to pdf without any problem from a terminal window. But if I start Jupyter from the Sagemath app and using then File -> Download as -> pdf this will not work: nbconvert failed: xelatex not found on PATH.

I have also no problem if I start Jupyter notebook from a terminal session. It seems that the app is not recognizing my TeX-path. Sage 9.5 itself is working without any issue.

My environment: macOS Monterey 12.1, TeXLive2021, Safari 15.3, Sage-Math-9.5 app

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2022-02-11 20:07:08 +0200

Marc Culler gravatar image

updated 2022-02-12 14:01:43 +0200

slelievre gravatar image

Currently the app launches Sage with a minimal environment. The reason for that was to prevent crashes that were occurring, for example, when a user had defined the environment variable PYTHONPATH, which would cause Sage to try load modules from a different version of python.

Probably it would have been safe to have added '/Library/TeX/texbin' to the PATH variable but I didn't think of doing that. It would be worth considering for the next release of the app. Can you please open an issue at the github site?

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

1 follower

Stats

Asked: 2022-02-11 17:40:41 +0200

Seen: 320 times

Last updated: Feb 12 '22