All Projects → t-makaro → Nb_pdf_template

t-makaro / Nb_pdf_template

Licence: mit
A more accurate representation of jupyter notebooks when converting to pdfs.

Projects that are alternatives of or similar to Nb pdf template

Notebook As Pdf
Save Jupyter Notebooks as PDF
Stars: ✭ 290 (+166.06%)
Mutual labels:  jupyter-notebook, jupyter, pdf
Awesome Cv
📄 Awesome CV is LaTeX template for your outstanding job application
Stars: ✭ 14,957 (+13622.02%)
Mutual labels:  latex, pdf, latex-template
Pandoc Latex Template
A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
Stars: ✭ 3,750 (+3340.37%)
Mutual labels:  latex, pdf, latex-template
Open Publisher
Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
Stars: ✭ 242 (+122.02%)
Mutual labels:  latex, pdf, latex-template
Cocalc
CoCalc: Collaborative Calculation in the Cloud
Stars: ✭ 888 (+714.68%)
Mutual labels:  latex, jupyter-notebook, jupyter
Algorithm Playground
An (old) and unstructured (messy tbh) collection of programming exercises.
Stars: ✭ 75 (-31.19%)
Mutual labels:  jupyter-notebook, jupyter
Pandoc Letter Din5008
Pandoc template for writing Markdown letters (DIN 5008)
Stars: ✭ 77 (-29.36%)
Mutual labels:  latex, pdf
Nbconflux
nbconflux converts Jupyter Notebooks to Atlassian Confluence pages
Stars: ✭ 82 (-24.77%)
Mutual labels:  jupyter-notebook, jupyter
Repo2docker Action
GitHub Action for repo2docker
Stars: ✭ 88 (-19.27%)
Mutual labels:  jupyter-notebook, jupyter
Juniperkernel
R Kernel for Jupyter
Stars: ✭ 67 (-38.53%)
Mutual labels:  jupyter-notebook, jupyter
Jupytemplate
Templates for jupyter notebooks
Stars: ✭ 85 (-22.02%)
Mutual labels:  jupyter-notebook, jupyter
Xpedite
A non-sampling profiler purpose built to measure and optimize performance of ultra low latency/real time systems
Stars: ✭ 89 (-18.35%)
Mutual labels:  jupyter-notebook, jupyter
Csu Thesis
中南大学学术论文LaTex模板。Central South University Thesis LaTeX Template.
Stars: ✭ 70 (-35.78%)
Mutual labels:  latex, latex-template
Tufte Latex
A Tufte-inspired LaTeX class for producing handouts, papers, and books
Stars: ✭ 1,161 (+965.14%)
Mutual labels:  latex, latex-template
Covid19 Dashboard
A site that displays up to date COVID-19 stats, powered by fastpages.
Stars: ✭ 1,212 (+1011.93%)
Mutual labels:  jupyter-notebook, jupyter
Gds env
A containerised platform for Geographic Data Science
Stars: ✭ 68 (-37.61%)
Mutual labels:  latex, jupyter-notebook
Aaulatextemplates
A collection of Aalborg University LaTeX-templates
Stars: ✭ 85 (-22.02%)
Mutual labels:  latex, latex-template
Almond
A Scala kernel for Jupyter
Stars: ✭ 1,354 (+1142.2%)
Mutual labels:  jupyter-notebook, jupyter
Nbinclude.jl
import code from IJulia Jupyter notebooks into Julia programs
Stars: ✭ 90 (-17.43%)
Mutual labels:  jupyter-notebook, jupyter
Cv
Geoff Boeing's academic CV in LaTeX
Stars: ✭ 101 (-7.34%)
Mutual labels:  latex, latex-template

classic.tplx

A more accurate representation of jupyter notebooks when converting to pdfs. This template was designed to make converted jupyter notebooks look (almost) identical to the actual notebook. If something doesn't exist in the original notebook then it doesn't belong in the conversion.

Note for nbconvert 5.5.0

As of nbconvert 5.5.0, the majority of these improvements have been merged into nbconvert's default template. Version 3.x of this package will continue to support nbconvert 5.5.0 and lower, whereas in the future version 4.x will only support nbconvert 5.5.0 and newer. Versions 3.x, and 4.x will overlap support for nbconvert version 5.5.0.

Note for nbconvert 6.0.0

nbconvert 6.0.0 is not yet released, but it will be changing the conversion template in a backward incompatible manner. A version 5.x of this repository will be made to support nbconvert >=6.0.0

Improvements

  1. \maketitle is removed (If you want a title then add a markdown cell to the top of your notebook).
  2. Sections are no longer numbered automatically (notebooks don't number sections so the pdf shouldn't).
  3. Markdown paragraphs are no longer auto-indented in the pdf.
  4. Syntax highlighting improvements. (Bonus if using XeLaTeX)
  5. BOXES! are drawn around code cells. (This change was merged into nbconvert 5.5.0)
  6. In/Out counts will move to the left as the execution count increases instead of pushing code to the right (only numbers are displayed by default to save page width). (This change was merged into nbconvert 5.5.0)
  7. $\LaTeX$ and $\Tex$ in markdown cells will no longer cause conversion to fail. (This change was merged into nbconvert 5.4.0)
  8. "\LaTeX" and "\TeX" are no longer converted into a logo on conversion to pdf unless they are in math mode. (This and the above point replicate the functionality of these commands in notebook markdown).
  9. In/Out prompt colours updated to match Jupyter. (This change was merged into nbconvert 5.5.0)
  10. Output text wrapping improvements. (This change was merged into nbconvert 5.5.0)
  11. Code cell text wrapping. (This change was merged into nbconvert 5.5.0)

Quick Comparison: comparison for a closer look see the example directory.

Installation

pip install nb_pdf_template
python -m nb_pdf_template.install

Updating

pip install -U nb_pdf_template
python -m nb_pdf_template.install

Manual Install:

Drop all of the "*.tplx" files into the folder containing the other LaTeX nbconvert templates. If using anaconda, it should be something like:

*/Anaconda3/Lib/site-packages/nbconvert/templates/latex

Use

From the command line:

jupyter nbconvert --to pdf filename.ipynb --template classic

Adding:

c.LatexExporter.template_file = 'classic'

to the jupyter_nbconvert_config.py file will let you drop the "--template classic", and to the jupyter_notebook_config.py file will let you use "download as pdf" from within the Jupyter notebook.

Replace classic with your template of choice.

Templates

This package offers the following templates:

Template Use
classic.tplx (Recommended) For most accurate recreation of the default Jupyter Notebook style.
classicm.tplx m for modified. Similar to classic.tplx, but in/out prompts are above cells instead of in the margin. Bonus left margins are smaller so code cells are wider.

Tips (Good for any template)

Moved to the wiki

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].