📅 2023-03-09 — Session: Automated Jupyter Notebook to PDF Conversion

🕒 05:25–06:15
🏷️ Labels: Jupyter, PDF, Automation, Command Line, Nbconvert
📂 Project: Dev
⭐ Priority: MEDIUM

Session Goal: The session aimed to automate the conversion of Jupyter Notebooks to PDF format, addressing potential errors and ensuring a seamless workflow.

Key Activities:

  • Utilized jupyter nbconvert for converting Jupyter Notebooks to PDF.
  • Implemented nohup to prevent interruptions during the conversion process.
  • Resolved nbconvert errors by installing the missing pandoc tool.
  • Managed pandoc versions using conda, including instructions for downgrading and upgrading.
  • Installed and configured xelatex across various operating systems to support PDF generation.
  • Provided a command-line script for locating and converting notebooks in specific directories.

Achievements:

  • Successfully automated the conversion process with error handling and version management.
  • Ensured compatibility and smooth execution across different environments.

Pending Tasks:

  • Verify the conversion process across additional environments and document any further issues encountered.