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
0
votes
1 answer

Jupyter notebook slideshow - removing white space on sides

I converted my jupyter notebook to slideshow using this command: jupyter nbconvert Jupyter\ "test.ipynb" --to slides --reveal-prefix "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.1.0" Now, I have an html slide file that I can see my slides.…
Hamid K
  • 983
  • 1
  • 18
  • 40
0
votes
1 answer

jupyter nbconvert execute to html cron job not working

I have this .sh to schedule in cron (ubuntu 18): #!/bin/sh wget -O x/doc1.csv https://www.x.com wget -O x/doc2.csv https://www.y.com jupyter nbconvert --execute --to html x/notebook.ipynb The first two lines runs perfectly but the jupyter line…
Pakin
  • 168
  • 1
  • 3
  • 16
0
votes
1 answer

Executing Jupyter notebook in command line

I would like to programmatically run a jupyter notebook cell containing import statements and use the packages imported after opening the notebook and not just convert the output to a new ipython notebook. Currently, I am using nbconvert to execute…
0
votes
0 answers

How to hide code cells in Jupyter using nbconvert to pdf?

I have a notebook (assume the notebook name is notebook for now, even though it isn't) that I currently run using the following command: jupyter nbconvert --to pdf --execute notebook.ipynb. I want the output to be a pdf, not html so I add the --to…
Jane Sully
  • 3,137
  • 10
  • 48
  • 87
0
votes
1 answer

Flask and HTML Variables

I'm new to flask, but want to integrate some HTML capabilities from other libraries together with the templating power of flask. In playing around with variables, I'm not able to understand the different behavior for rendering HTML. Sometimes I…
jfkoehler
  • 269
  • 2
  • 17
0
votes
1 answer

How to embed a file excerpt in Jupyter

I would like to disclose a part of my code inside a Markdown cell in Jupyter. The code is located in an external file. Concretely, I am looking for something like: [file.py:240:255] which would display the lines 240 to 255 of file.py. I wonder how…
guhur
  • 2,500
  • 1
  • 23
  • 33
0
votes
0 answers

Error when trying to use nbconvert to create pdf from ipynb

I am relatively new to python and I do not know how to debug. I have a .ipynb that I am trying to convert to a pdf file. When I run this in the command line I am getting the following errors. [NbConvertApp] Converting notebook HW1_notebook.ipynb to…
jamesguy0121
  • 1,124
  • 11
  • 28
0
votes
0 answers

nbsphinx: ipynb output cells need line wrap/break when exporting latex

Using nbsphinx to convert ipynb notebooks to latex for pdf output. The output cells do not wrap and are cut-off. My search for a fix has found nothing so far. The output is relevant and should show up in the report. Thanks.
vv111y
  • 13
  • 5
0
votes
0 answers

jupyter nbconvert to save to script only the cells marked as initialization in my notebook

I am doing jupyter-nbconvert --to script mynb.ipynb to get a .py from my notebook. This gives me everything in the notebook. I was wondering if I can set nbconvert to save in the .py script only the cells marked as initialization in my notebook. I…
Rho Phi
  • 1,182
  • 1
  • 12
  • 21
0
votes
1 answer

How to configure "Download As..."

After a day of research I managed to do a custom template for nbconvert that does what I needed to do (hide the input cells as part of a pdf conversion). However this only works in the command line. I'd like to be able to do this by chosing from the…
user3207377
  • 95
  • 1
  • 1
  • 8
0
votes
0 answers

tag closing outside containing block in nbconvert template

Ok , I am trying to modify nbconvert template in order to change some style when coverting to html using template , (that I am new to, and it said it's in Jinja template style) here's the code (of problem) in full.tpl: {% block markdowncell %}
Yasin Yousif
  • 969
  • 7
  • 23
0
votes
1 answer

Jupyter, which nbconvert template does what?

I'm currently triying to export a .ipynb with nbconvert using a special template. The final goal is to write a .ipynb and convert it to PDF, but erasing all Code-Input-Cells and havig the "normal" latex-style (font, dimensions of paper, and so on).…
Sito
  • 494
  • 10
  • 29
0
votes
1 answer

How do you provide TemplateExporter config options to Jupyter nbconvert?

I want to customize nbconvert's output by providing additional TemplateExporter config options such as exclude_markdown when converting .ipynb to .py. However, none of the configs I provide ever get recognized on Jupyter 4.1.0. What am I missing?
Some Noob Student
  • 14,186
  • 13
  • 65
  • 103
0
votes
1 answer

nbconvert no longer working with nbextensions

I recently had to do a complete reinstall of jupyter on my machine. Since then, when I use nbextensions to convert my notebooks to an html file, the table of contents links to the original notebook rather than the new html file. Before, the basic…
cromulent
  • 71
  • 2
0
votes
1 answer

Show only specific (tagged) input cells in pdf created with nbconvert from jupyter notebook

In various jupyter notebooks I want to manually specify which input cells to show and per default not show any input cell when converting it to a pdf or tex document. I already achieved not showing any input cells by using following latex…
Nico Albers
  • 1,556
  • 1
  • 15
  • 32
1 2 3
19
20