Questions tagged [nbconvert]

nbconvert is a tool for Jupyter Notebook conversions.

nbconvert is a tool for Jupyter Notebook conversions.

The nbconvert tool, jupyter nbconvert, converts notebooks to various other formats via Jinja templates. The nbconvert tool allows you to convert an .ipynb notebook file into various static formats including:

Github: https://github.com/jupyter/nbconvert

Docs: https://nbconvert.readthedocs.io/en/latest/

298 questions
3
votes
2 answers

How do I help Python find Jupyter command 'jupyter-nbconvert', to export Jupyter Notebook to HTML?

UPDATE - A solution was found, see comments, and the end of this post for further details I am using Jupyter Notebook in VS Code, and trying to export my notebook to HTML through the Notebook menu tab In other words, I am following the instructions…
3
votes
1 answer

How to remove date from pdf produced from ipynb with nbconvert

I am using nbconvert programmatically to export a jupyter notebook file to pdf: import nbformat from nbconvert.exporters import PDFExporter from nbconvert.preprocessors import TagRemovePreprocessor from traitlets.config import Config c =…
Riley
  • 2,153
  • 1
  • 6
  • 16
3
votes
2 answers

How to add a vertical scrollbar in html output from jupyter notebook with nbconvert?

I am automatizing some reports with jupyter and exporting it to html. I have some large tables, and I want to add a scrollbar to rigthside of table. A similar question is here: How to get a vertical scrollbar in HTML output from Jupyter notebooks.…
Mentoldo
  • 43
  • 1
  • 7
3
votes
0 answers

Inline Python Markdown is not computed when exporting from notebook to html

I'm using the Python Markdown extension in my Jupyter notebooks, that so far works great in a live notebook: However when I'm trying to export it as html (I'm using the GUI for this: File > Download as > HTML (.html)), the inline code is no longer…
3
votes
0 answers

pyppeteer.errors.TimeoutError: Navigation Timeout Exceeded: 30000 ms exceeded. When trying to convert a jupyter notebook to pdf

Im using nbconvert to convert a notebook to pdf using the following code: (base) C:\Users\25470\Desktop\Data Projects\Quantium Virtual Internship\Assingment 2>jupyter nbconvert task2.ipynb --to webpdf I get the following output : [NbConvertApp]…
Youssef Razak
  • 365
  • 4
  • 11
3
votes
1 answer

Unable to export jupyter notebook to any other format using nbconvert

I am using Python 3.8.5 on Windows 10. I installed Jupyterlab and it works correctly. However nbconvert does not. When I try to export notebook to any format, I get the following error in the terminal: [W 16:14:06.733 NotebookApp] 404 GET…
The Archer
  • 31
  • 1
  • 2
3
votes
0 answers

Can author be specified in jupyter notebook markdown so nbconvert uses it for PDF article author?

Using VS Code Notebook Editor I can have Python and Markdown cells. Eventually I want make a PDF article using nbconvert and include the author. I can make a nbconvert template that includes the author, but I feel like I'm playing with fire. Is…
rickhg12hs
  • 10,638
  • 6
  • 24
  • 42
3
votes
1 answer

How to get the same look of table when generating pdf from jupyter notebook?

I have a jupyter notebook python based where I have dataframe output shown- it is 5 columns size. It looks fine in notebook but when I generate pdf using nbconvert command it is being split and only two columns are shown at once I use custom…
AHR
  • 99
  • 8
3
votes
0 answers

Displaying pandas dataframe after doing nbconvert for jupyter notebook

When I run my notebook in Jupyter Notebook, I have a nice dataframe outputted. However, when I run my notebook from command line and convert it to a pdf using --to pdf the dataframe does not display. Is there anything I can do to display the…
Jane Sully
  • 3,137
  • 10
  • 48
  • 87
3
votes
1 answer

jupyter nbconvert --to notebook not excluding raw cells

I'm trying to export notebooks from a ./doc folder to a `./notebook/ folder in the root of my project, but remove all the raw cells where I have rst. I tried the following: jupyter nbconvert --to notebook $< --output=$@…
NickleDave
  • 372
  • 2
  • 18
3
votes
1 answer

Cannot advance slide in jupyter notebook converted to Reveal.js slides

I am trying to convert my notebook, created with jupyter lab, to Reveal.js slides. I am using this command: jupyter nbconvert Initial-Data-Exploration.ipynb --to slides --post serve taken from this Github issue. However I am getting the same issue…
Daniel Kats
  • 5,141
  • 15
  • 65
  • 102
3
votes
0 answers

Multiline equations when converting from jupyter notebook to tex

I'm using nbconvert to convert from Jupyter notebook containing MathJax equations to tex files. One problem is that multi-line equations which contain alignment, i.e. $$ /begin{align} ... /end{align} $$ are converted in tex…
galah92
  • 3,621
  • 2
  • 29
  • 55
3
votes
0 answers

Missing XeLateX when trying to use NBconvert (to PDF) on Windows

Jupyter's default export to PDF, like the command-line NBconvert tool, are telling me that I can't convert my notebook to PDF because the PDF conversion goes via xelatex. The error message refers me to this help page, so I installed MiKTeX. I have a…
Josh Friedlander
  • 10,870
  • 5
  • 35
  • 75
3
votes
0 answers

jupyter notebook with unicode characters PDF converting problems

I was making a math class note with some unicode characters (Simplified Chinese, in my case) in it. And when I was trying to convert it into PDF file, it popped out 500 error. The error message…
Pats Chen
  • 43
  • 5
3
votes
1 answer

convert jupyter notebook saved as .HTML file back into .IPYNB

Can I convert a Jupyter Notebook saved as .HTML file back into .IPYNB file? The executable original notebooks were lost. The nbconvert docs don't have anything useful for this case. Currently I have to copy-paste bunch of cells into a new notebook,…
denfromufa
  • 5,610
  • 13
  • 81
  • 138