Skip to content

Conversation

@ocefpaf
Copy link

@ocefpaf ocefpaf commented Jul 22, 2025

@MathewBiddle this PR was created with these commands:

pixi init
pixi add --platform win-64 posix
pixi add "python=3.10" cf_xarray ioos_qc jupyter matplotlib-base pandas xarray netCDF4 miktex miktex

Note that the second one is only needed b/c I am on Linux. It creates the same env with miktex. On Linux one should change miktext to texlive-core. However, both solutions are untested and I'm not sure they bring 100% of the necessary packages for tex conversion on jupyter. I'm exploring the tectonic route there too,

PS: How are you calling the nbconvert command? There should be "some" pdf capabilities without texlive pakcages... Not sure how the final output would look like though if one is using equations, etc.

@MathewBiddle
Copy link
Owner

jupyter nbconvert Western-Indian-Ocean-Workshop-ioos_qc-demo.ipynb --output-dir=./docs --to pdf --SlidesExporter.reveal_theme=simple --SlidesExporter.theme=light --SlidesExporter.reveal_scroll=True --SlidesExporter.reveal_transition=slide --SlidesExporter.reveal_number=c/t

@ocefpaf
Copy link
Author

ocefpaf commented Jul 22, 2025

Slides probably require some texlive functionality. I'll test it locally and get back to you.

@ocefpaf
Copy link
Author

ocefpaf commented Jul 24, 2025

I added to tasks: pixi run pdf and pixi run webpdf, the former will use xelatex and should give you a proper formatted slide (try that one first). If that doesn't work, the try the webpdf one, your mileage should vary, but it is a substitute when xelatex fails. I'm still working on an easier way to use tectonic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants