Questions tagged [nbconvert]

nbconvert tool is Jupyter Notebook Conversion

nbconvert tool is Jupyter Notebook Conversion

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/

225 questions
5
votes
2 answers

Best way to print Jupyter notebook slides? How to put a page break?

I want to print my jupyter notebook and share the hardcopy with non-programmer coworkers. What I have done so far: I've figured out the way to hide the code :How to hide code from cells in ipython notebook visualized with nbviewer? I've figre out…
Lisa
  • 3,066
  • 7
  • 29
  • 60
5
votes
1 answer

Nbconvertapp doesn't exist

I'm on Ubuntu, I'm using Python 2.7.6 and Ipython 4.0.3. I'm trying to convert a ipynb file to a pdf file. It gives the following error: ipython nbconvert --to pdf mine.ipynb Traceback (most recent call last): File "/usr/bin/ipython", line 6, in…
4
votes
2 answers

Error: Importing notebooks requires Jupyter nbconvert to be installed

I am trying to import an ipynb file in a Jupyter Notebook in VS Code. However I am getting the following error everytime: Error 2021-01-02 00:31:20: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed. at…
4
votes
1 answer

What is the proper way to specify a custom template path for jupyter nbconvert V6?

What is the proper way to specify a custom template path for nbconvert? Under nbonvert version 6, templates are now a directory with several files. Those templates can live in any number of locations depending on the…
Aaron Ciuffo
  • 476
  • 3
  • 14
4
votes
0 answers

Clear a specific metadata property of a Jupyter Notebook in version control

When saving my jupyter Notebooks with Git, I'd like to remove: Outputs (answered in https://stackoverflow.com/a/58004619/3733974) ExecuteTime in metadata (code below in .ipynb) "metadata": { "ExecuteTime": { "end_time":…
mbh86
  • 4,591
  • 3
  • 14
  • 24
4
votes
1 answer

nbconvert: ValueError: No template sub-directory with name 'rst' found in the following paths: [LS OF PATHS]

I am using nbconvert to convert markdown file to pdf. In the code I used writer = nbconvert.RSTExporter() but when render the result with writer.from_notebook_node(), I faced the error: ValueError: No template sub-directory with name 'rst' found in…
Hoa Nguyen
  • 310
  • 3
  • 11
4
votes
0 answers

How to embed images in html using nbconvert export with 'toc' and 'hide input'?

My question is an extension of this one (Combine 'toc' and 'hide input' when using nbconvert html export). The suggested solution works on Win 10 (Anaconda, Jupyter notebook) but the images are saved in a separate directory. I would like to embed…
4
votes
3 answers

Jupyter Notebook exported HTML dark color

I am using JupyterLab with light theme and when I exported my notebook as HTML I saw this: What I am expecting to see is something like this: any ideas of the setting ?
kyle chan
  • 153
  • 1
  • 11
4
votes
1 answer

Jupiter: nbconvert does convert HTML image to LaTex

I love using jupyter notebooks to document topics for my physics course, so I am having my students use CoCalc and either Markdown or Jupyter notebook to write their lab reports. I have a problem. In a jupyter notebook, the Markdown way to insert an…
Prof Huster
  • 731
  • 6
  • 12
4
votes
2 answers

Trying to convert Jupyter Notebook to PDF slides

I'm trying to convert a Jupyter notebook that is using RISE to visualize the slides as a slideshow in the browser into a PDF file. The PDF file should have all pages in landscape mode and resemble the view in the browser. Of course, animations are…
Hendrik Wiese
  • 1,670
  • 2
  • 16
  • 40
4
votes
1 answer

How to run nbconvert on notebook in google colaboratory

I have a simple jupyter notebook, say foo.ipynb. I wish simply to run nbconvert in the usual way: on my local machine I would execute !jupyter nbconvert foo.ipynb in the notebook itself, or jupyter notebook foo.ipynb in a shell. On Google…
muskrat
  • 1,389
  • 7
  • 16
4
votes
1 answer

Logging while nbconvert execute

I have a Jupyter notebook that needs to run from the command line. For this I have the following command: jupyter nbconvert --execute my_jupyter_notebook.ipynb --to python This command creates a python script and then executes it. However, I'm…
Victor
  • 856
  • 1
  • 20
  • 38
4
votes
0 answers

Jupyter `export as html` does not use my customized theme and changes the font colors

I use a dark theme (custom.css) for the jupyter notebooks. When I use nbconvert either through the command line or from the menu, it gives me an html file with a different font colors. I read about it on the developer GitHub page but I did not…
Roo
  • 648
  • 1
  • 7
  • 19
4
votes
0 answers

How to change Jupyter notebook html output template?

I use jupytherthemes module to change Jupyter notebook theme to solarized. For some reason, I needed to reinstall the Anaconda. After that I was not able to use jupytherthemse and I just used another custom.css file and left it in .jupyter/custom…
Roo
  • 648
  • 1
  • 7
  • 19
4
votes
1 answer

extract all cell data from current Jupyter notebook

Within Jupyter, there's two options to export notebooks to other formats, using nbconvert either on the command-line or as a library. Both require you to pass the original notebook as input (either as a file name or JSON data). What I would like to…
blackgore
  • 127
  • 8
1 2
3
14 15