[pdf] IPython/Jupyter Problems saving notebook as PDF

In any system, the basic steps to correctly setup nbconvert to convert ipython notebooks to pdf/latex are

  1. Install nbconvert
  2. Install pandoc
  3. Install Texlive

Installing nbconvert

pip install nbconvert

or conda install nbconvert

Installing pandoc

sudo apt-get install pandoc for Ubuntu

or sudo yum install pandoc for CentOS

for others visit pandoc-installation

Installing texlive

You can install recommended packages or full install. For Ubuntu

sudo apt-get install texlive texlive-xetex texlive-generic-extra texlive-generic-recommended

`

For others and to full install texlive follow the instructions given at tug as per your system and choice.

I downloaded tar.gz file from tug-texlive-download and followed instructions given at TeX Live - Quick install. Installation instructions in summary:

  1. Clean up

    rm -rf /usr/local/texlive/2019

    rm -rf ~/.texlive2019

  2. Run installer

    unpack the zip file

    cd /your/unpacked/directory

    perl install-tl

    Enter command: i

  3. Setting path

    sudo vi /etc/bash.bashrc and insert

    PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH; export PATH

    MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man:$MANPATH; export MANPATH

    INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info:$INFOPATH; export INFOPATH

  4. Setting default papersize

    tlmgr paper letter

The commands may differ as per your system but the basic steps remains the same.

Examples related to pdf

ImageMagick security policy 'PDF' blocking conversion How to extract table as text from the PDF using Python? Extract a page from a pdf as a jpeg How can I read pdf in python? Generating a PDF file from React Components Extract Data from PDF and Add to Worksheet How to extract text from a PDF file? How to download PDF automatically using js? Download pdf file using jquery ajax Generate PDF from HTML using pdfMake in Angularjs

Examples related to ipython

How to increase image size of pandas.DataFrame.plot in jupyter notebook? Importing .py files in Google Colab Selection with .loc in python IOPub data rate exceeded in Jupyter notebook (when viewing image) Purpose of "%matplotlib inline" Installing a pip package from within a Jupyter Notebook not working convert json ipython notebook(.ipynb) to .py file In which conda environment is Jupyter executing? How to make inline plots in Jupyter Notebook larger? %matplotlib line magic causes SyntaxError in Python script

Examples related to jupyter

How to increase image size of pandas.DataFrame.plot in jupyter notebook? What is the difference between Jupyter Notebook and JupyterLab? Removing Conda environment How to open local file on Jupyter? Jupyter notebook not running code. Stuck on In [*] Can I run Keras model on gpu? IOPub data rate exceeded in Jupyter notebook (when viewing image) How to execute a * .PY file from a * .IPYNB file on the Jupyter notebook? how to make a new line in a jupyter markdown cell Running Jupyter via command line on Windows