First time here? Check out the FAQ!

Ask Your Question
2

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

asked 3 years ago

ulgr gravatar image

updated 3 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

Marc Culler gravatar image

updated 3 years ago

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?

Preview: (hide)
link

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: 3 years ago

Seen: 633 times

Last updated: Feb 12 '22