How to get landscape orientation when converting IPython notebook to PDF?

dbanas

I'm converting my IPython notebook to PDF, using the following command:

ipython nbconvert --to latex --post PDF <notebook_filename>

and can't figure out what extra option to give, such that my final PDF is rendered in landscape orientation (so that none of my Python code gets clipped).

Anyone know how to accomplish this?

Amirkhm

You can firstly produce a .tex out of your .ipynb file and then edit it using your latex interface.

1) in your terminal use the following code:

ipython nbconvert --to latex your_notebook.ipynb

2) Open your file in a LaTeX interface and use the command below to change the look to landscape:

\documentclass[a4paper,landscape]{article}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get a landscape orientation for only some pages while converting html to pdf in itext 7?

Problems with landscape orientation when converting sheets in an Excel workbook to pdf files VBA

How to continue a landscape orientation for a particular div tag while converting html to pdf in itext 7?

Xfinium: How to generate PDF with landscape orientation

How to specify in razor pdf landscape orientation in .cshtml

Landscape Orientation When Download Table HTML to PDF Using TableHTMLExport Plugin

How to add scrolling to the view when screen orientation is changed to landscape?

Force Landscape when orientation is locked

Converting to (not from) ipython Notebook format

iPython notebook won't convert to PDF when using align

Change orientation of landscape pages only in PDF

'Missing $ inserted' error message when converting jupyter notebook to pdf with nbconvert

how to get pdf image orientation using itextsharp

View pdf image in an iPython Notebook

View pdf image in an iPython Notebook

exporting jupyter ipython notebook to pdf

IPython notebook - unable to export to pdf

UIWindow with wrong size when using landscape orientation

Hiding a view when orientation changes to landscape in autolayouts

Fragment not using landscape layout when orientation is changed

How to cache in IPython Notebook?

How to include iPython notebook

How to (intermittently) skip certain cells when running IPython notebook?

How to prevent IPython notebook script pausing when the screen locks

How do I get the current IPython / Jupyter Notebook name

how to get the file path for the ipython notebook in use? (the equivalent to __file__)

Cordova: How to lock app orientation at boot to landscape and not landscape-reverse?

How to convert YUV to bitmap in landscape orientation?

How to show AutoCompleteTextView suggestions in landscape orientation