This Jupyter notebook extension allows you to save your notebook as a PDF.
Three new features compared to the official "save as PDF" extension:
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.
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 performthe HTML to PDF conversion.
On linux you probably also need to install some or all of the APT packageslisted in binder/apt.txt
.
Create a notebook and the click "File -> Download As". Click the new menu entrycalled "PDF via HTML". Your notebook will be converted to a PDF on the flyand 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. Previewon OSX can not display PDF attachments.
nbconvert命令可以将jupyter的ipynb转为其他格式,或运行ipynb文件 命令行工具 运行nbconvert脚本的语法: $ jupyter nbconvert --to FORMAT notebook.ipynb 将jupyter笔记本文件notebook.ipynb转为FORMAT字符串给出的格式。默认输出格式是html, --to可以省略 常用的支持输出格式: HTML L
Ubuntu 安装Pandoc 原文出处链接及本声明。 原文链接:https://blog.csdn.net/amnesiagreen/article/details/104288689 amnesiagreen 2020-02-12 23:35:36 1389 已收藏 4 1.文章目录 安装目的 Pandoc介绍 Terminal安装Pandoc GitHub下载Pandoc的deb文件 转换成
Jupyter-notebook隐藏代码 有时候我们需要将jupyter-notebook导出为一个报告或者presentation的形式,不需要显示代码过程,只需要显示结果以及用markdown做的解释说明。有几种方式可以实现这个功能。我把下面的代码写成了函数集成在我的sciplot库里面了。 隐藏/显示代码按钮 在随便一个cell中加入以下代码并运行就可以得到一个按钮,点击它就可以实现隐藏和显
1 -(void)createPdf:(UIImage *)img andText:(NSString *)text{ 2 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 3 NSString *saveDirectory = [pat
Portable Document Format(可移植文档格式),或者PDF是一种文件格式,可以用于跨操作系统的呈现和文档交换。尽管PDF最初是由Adobe发明的,但它现在是由国际标准化组织(ISO)维护的开放标准。你可以通过使用PyPDF2包在Python中处理已先存在的PDF。 PyPDF2是一个纯Python包,可用于许多不同类型的PDF操作。 本文将带你了解如何执行以下操作: 从
解决jupyter notebook转换成PDF失败的问题 参考文章: 1.https://stackoverflow.com/questions/36916093/convert-ipynb-to-pdf-in-jupyter 2. https://blog.csdn.net/qq120633269/article/details/102554407 首先,下载LaTex,在这里我用的是Tex
我的苹果笔记本 零、序言 平时积累的东西以笔记的形式分享出来 Usage 目录结构 - js - public js示例 - main.js es6入口 - src webpack示例 - server.js webpack入口 - webpack.*.js webpack配置文件 - package.json 依赖管理- php - demo 各种栗子
笔记工具,使用qt和scala语言开发。功能简单。 目前有一个下载。支持linux。我想windows下面的笔记程序很多。
jQuery Notebook 可以实现在页面上即时进行内容编辑。它是一个简单、干净、优雅的文本编辑器。
Spyder notebook plugin Spyder plugin to use Jupyter notebooks inside Spyder. Currently it supportsbasic functionality such as creating new notebooks, opening any notebook inyour filesystem and saving
API Notebook 一个用于测试 API 的 Javascript 控制台,它本身是和其他的 API 一起组合而成。它能生成用 RAML 描述的 API 用户客户端并可以开始使用它们。 Via:InfoQ
Jupyter Notebook 是一个基于 Web 的交互式计算笔记本环境。 Jupyter Notebook 允许用户创建和共享各种内容,包括实时代码、方程式、可视化和叙述文本的文档。它的用途包括:数据清理和转换、数值模拟、统计建模、数据可视化与机器学习等。 特点: 支持 40 多种编程语言,包括 Python、R、Julia 和 Scala。 可以使用电子邮件、Dropbox、GitHub