notebook-as-pdf-abirami


Namenotebook-as-pdf-abirami JSON
Version 0.5.7 PyPI version JSON
download
home_pagehttps://github.com/betatim/notebook-as-pdf
SummaryJupyter extension to export notebooks as PDFs
upload_time2023-10-07 21:28:13
maintainer
docs_urlNone
authorTim Head
requires_python>=3.7
licenseBSD3
keywords jupyter pdf export bundler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Jupyter Notebooks as PDF

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/betatim/notebook-as-pdf/0.5.0)

This Jupyter notebook extension allows you to save your notebook as a PDF.

Three new features compared to the official "save as PDF" extension:
1. produce a PDF with the smallest number of page breaks,
1. the original notebook is attached to the PDF; and
1. this extension does not require LaTex.

The created PDF will have as few pages as possible, in many cases only one. This is useful if you are exporting your notebook to a PDF for sharing with others who will view it on a screen.

Every `<h1>` tag in the notebook will be converted into a entry in the table of contents of the PDF.

To make it easier to reproduce the contents of the PDF at a later date the original notebook is attached to the PDF. Unfortunately not all PDF viewers know how to deal with attachments. PDF viewers known to support downloading of file attachments are: Acrobat Reader, pdf.js and evince. The `pdftk` CLI program can also extract attached files from a PDF. Preview for OSX does not know how to display/give you access to attachments of PDF files.


## Install

To use this bundler you need to install it:
```
python -m pip install -U notebook-as-pdf
pyppeteer-install
```
The second command will download and setup Chromium. It is used to perform
the HTML to PDF conversion.

On linux you probably also need to install some or all of the APT packages
listed in [`binder/apt.txt`](binder/apt.txt).


## Use it

Create a notebook and the click "File -> Download As". Click the new menu entry
called "PDF via HTML". Your notebook will be converted to a PDF on the fly
and then downloaded.

You can also use it with `nbconvert`:
```
jupyter-nbconvert --to pdfviahtml example.ipynb
```
which will create a file called `example.pdf`.

You will have to use Acrobat Reader to see the attachment to your PDF. Preview
on OSX can not display PDF attachments.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/betatim/notebook-as-pdf",
    "name": "notebook-as-pdf-abirami",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "jupyter pdf export bundler",
    "author": "Tim Head",
    "author_email": "betatim@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# Jupyter Notebooks as PDF\n\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/betatim/notebook-as-pdf/0.5.0)\n\nThis Jupyter notebook extension allows you to save your notebook as a PDF.\n\nThree new features compared to the official \"save as PDF\" extension:\n1. produce a PDF with the smallest number of page breaks,\n1. the original notebook is attached to the PDF; and\n1. this extension does not require LaTex.\n\nThe created PDF will have as few pages as possible, in many cases only one. This is useful if you are exporting your notebook to a PDF for sharing with others who will view it on a screen.\n\nEvery `<h1>` tag in the notebook will be converted into a entry in the table of contents of the PDF.\n\nTo make it easier to reproduce the contents of the PDF at a later date the original notebook is attached to the PDF. Unfortunately not all PDF viewers know how to deal with attachments. PDF viewers known to support downloading of file attachments are: Acrobat Reader, pdf.js and evince. The `pdftk` CLI program can also extract attached files from a PDF. Preview for OSX does not know how to display/give you access to attachments of PDF files.\n\n\n## Install\n\nTo use this bundler you need to install it:\n```\npython -m pip install -U notebook-as-pdf\npyppeteer-install\n```\nThe second command will download and setup Chromium. It is used to perform\nthe HTML to PDF conversion.\n\nOn linux you probably also need to install some or all of the APT packages\nlisted in [`binder/apt.txt`](binder/apt.txt).\n\n\n## Use it\n\nCreate a notebook and the click \"File -> Download As\". Click the new menu entry\ncalled \"PDF via HTML\". Your notebook will be converted to a PDF on the fly\nand then downloaded.\n\nYou can also use it with `nbconvert`:\n```\njupyter-nbconvert --to pdfviahtml example.ipynb\n```\nwhich will create a file called `example.pdf`.\n\nYou will have to use Acrobat Reader to see the attachment to your PDF. Preview\non OSX can not display PDF attachments.\n",
    "bugtrack_url": null,
    "license": "BSD3",
    "summary": "Jupyter extension to export notebooks as PDFs",
    "version": "0.5.7",
    "project_urls": {
        "Homepage": "https://github.com/betatim/notebook-as-pdf"
    },
    "split_keywords": [
        "jupyter",
        "pdf",
        "export",
        "bundler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5f88b8b83fd542fce5efe81080a1d24dac427cf664bc970f3d875ed8be088eb",
                "md5": "80c5731bc31dddea0fd19d72d6f0aae7",
                "sha256": "b6404f85cf49038fccb9624b29c74ba83d6830a2567c727aa5607294ec7620be"
            },
            "downloads": -1,
            "filename": "notebook_as_pdf_abirami-0.5.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80c5731bc31dddea0fd19d72d6f0aae7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6403,
            "upload_time": "2023-10-07T21:28:13",
            "upload_time_iso_8601": "2023-10-07T21:28:13.083594Z",
            "url": "https://files.pythonhosted.org/packages/c5/f8/8b8b83fd542fce5efe81080a1d24dac427cf664bc970f3d875ed8be088eb/notebook_as_pdf_abirami-0.5.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-07 21:28:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "betatim",
    "github_project": "notebook-as-pdf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "notebook-as-pdf-abirami"
}
        
Elapsed time: 0.12059s