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
2 answers

All plots show up in notebook, but nbconvert notebook to html, only latest plotly express plots show up

Background I'm working on a data challenge with 3GB data. I plotted about 10 plots using ploy-express in jupyter notebook. I didn't use fig.show('notebook') because it didn't work. I used py.init_notebook_mode(), all plots show up perfectly in…
0
votes
1 answer

nbconvert to pdf not working in google colab

I am able to use nbconvert to HTML with the following command copied from this stackoverflow thread: %%shell jupyter nbconvert --to html /PATH/TO/YOUR/NOTEBOOKFILE.ipynb but when I switch to pdf, I get the following error…
Fomorian
  • 25
  • 1
  • 5
0
votes
1 answer

jupyter nbconvert to PDF raises PermissionError: [WinError 5]

I'm trying to convert a Jupyter notebook into a PDF file but I keep getting the following error: [NbConvertApp] Converting notebook ejercicios.ipynb to pdf Traceback (most recent call last): ... File…
netotz
  • 193
  • 1
  • 4
  • 12
0
votes
1 answer

How do I get Juypter Widgets to render properly through Sphinx and nbconvert?

I am using Jupyter widgets in my notebooks. My notebooks are then processed through Sphinx + nbsphinx to generate HTML. I noticed that even the simple example below shows a slider in my notebook (on Jupyter Lab), but the generated, corresponding…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
0
votes
0 answers

extend the markdown jupyter nbconvert template to remove codeblocks but keep markdown output from codeblocks

I need to extend the nbconvert markdown template to remove code blocks but preserve the output of codeblocks. I'm struggling to find the appropriate documentation for nbconvert. The official documentation is very vague and assumes intimate…
Aaron Ciuffo
  • 804
  • 8
  • 22
0
votes
1 answer

converting jupyter notebook to PDF in FireFox in Ubuntu 20.04 using pyppeteer

I am shown this option to convert my jupyter to PDF (how should I fix it?) But when I try it, I get the following error: This is rather weird error since I am using Firefox not Chromium browser.
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
0
votes
1 answer

jupyter nbconvert: How to execute and output multiple format without execute multiple time?

I am using nbconvert. From the SimpleNotebook.ipynb, I want to output two file: Execute SimpleNotebook.ipynb, then save the notebook with output cell. A HTML without code. My command line for doing the job: jupyter nbconvert…
Haha TTpro
  • 5,137
  • 6
  • 45
  • 71
0
votes
0 answers

Upload File to Django Admin, Process it, and Deliver to Template

I would like to upload a file object in the admin, run a process on this to convert it to html, and deliver the result to a template. I cannot figure out how to access the file object in order to run the handler, but the file itself is .json…
jfkoehler
  • 269
  • 2
  • 17
0
votes
0 answers

nbconvert latex output failing to link internal cells

I have linked my cells internally in a Jupyter notebook, but when I try to convert the file to Latex using the command `jupyter nbconvert --to latex ta.ipynb --no-input' I get the following errors in place of links Flag all Section?? I have linked…
m2rik
  • 135
  • 7
0
votes
1 answer

Change formatting behavior for a URL in nbconvert

I want to convert a Jupyter notebook to LaTeX using nbconvert. The default exporting behavior is to convert Jupyter hypertext links [a link](http://some.website.com) to a LaTeX string that can be rendered as a link in a PDF…
itzy
  • 11,275
  • 15
  • 63
  • 96
0
votes
1 answer

How to skip specific cells while converting a notebook to python script?

I am trying to convert a Jupyter notebook to a python file using nbconvert command. There is a cell having Python code which I want it to skip while converting. I tried few solutions including adding remove_cell tag to the one that has to be…
Arjun A J
  • 396
  • 1
  • 9
  • 34
0
votes
1 answer

jupyter notebook: download as html with iframes

I have a notebook that loads local html fiels with IFrame(src='./products.html', width=800, height=600) With the notebook open I see the contents of products.html but when I click “Download as” and select html within the Jupyter Notebook web…
Leevi L
  • 1,538
  • 2
  • 13
  • 28
0
votes
1 answer

how to access jupyter tag with nbconvert

I added a tag "hide input" to a code cell in Jupyter. This nicely shows up in the meta data: "cell_type": "code", "execution_count": 126, "metadata": { "tags": [ "hide_input" ] When doing nbconvert, I use a template where I check if this tag…
Mark Bakker
  • 799
  • 1
  • 6
  • 15
0
votes
1 answer

How can I change code background color when using nbconvert?

When converting Jupyter Notebook to html I am trying to change code background color using a Jinja template {% block input_group %}
{{ super() }}
{% endblock input_group %} When I run…
Hugo
  • 1,558
  • 12
  • 35
  • 68
0
votes
1 answer

Azure devops does not fail when command execution fails

In one of my builds: https://dev.azure.com/ericmjl/Tutorials/_build/results?buildId=660&view=logs I notice the following problem. The execution of the nbconvert command does not fail when a code cell errors out. I'm not sure if this is an nbconvert…
ericmjl
  • 13,541
  • 12
  • 51
  • 80