Saturday, September 24, 2022

Easy way of converting google colab ipynb to a PDF file

Below steps are to be performed to convert ipynb file to PDF file.

1. Install below packages for every ipnyb file 
   
    !apt-get install texlive texlive-xetex texlive-latex-extra pandoc
!pip install pypandoc


2. Copy the path of the file [Ex: File name : abc.ipynb]

3. Execute below

!jupyter nbconvert <<path+ filename>>  --to pdf

Ex : !jupyter nbconvert /content/drive/MyDrive/Colab/ForExam-Seaborn.ipynb --to pdf




---------------------------------------------------------------------------- 
All the messages above are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.
Host/author is not responsible for these posts.

No comments:

Post a Comment