I use ipython nbconvert mynotebook.ipynb --to pdf to get a pdf file of my notebook. The picture below shows the (latex-)generated output. How can I change the behavior of nbconvert so that it shows the rendered HTML and not the object string representation?
Related
I'm using the following command to export a notebook to html:
jupyter nbconvert --no-input --to --template full html notebook.ipynb
However, I always get this annoying None print whenever I use the --template full option.
Is there a way I can get rid of this annoying print and still use the --template full option?
I'm trying to export a notebook to pdf via latex, but doesn't work.
If I upload an image in markdown cell,
![image.png](attachment:image.png)
I can see the image in notebook, but when I export to pdf
the final file doesn't open, it says that the file can be danified and can't be open.
But if I put the image via cell code
PATH = "C:/Users/my_folder/"
Image(filename = PATH + "image.png", width=800)
the pdf works well, but I don't like the style, with the grey box on the cell code...
Could someone help me? How to export notebooks with markdown images or how to change the style of exported files in jupyter notebook to something more similar to an article.
When I convert a notebook containing an ipywidget, the widget doesn't render, only the label is printed. Is it possible to get nbconvert to render the ipywidget when converting to html or pdf? I don't need interactivity, just a static image.
Here is the notebook defining a slider widget
And here is the output after running nbconvert --to pdf widget-test.ipynb
I went through the process of saving the notebook widget state according to the official instructions before converting the notebook.
I am using the latest jupyter/scipy-notebook docker image.
I wrote a jupyter notebook and set up slideshow options to obtain slides and do a presentation. Thus I can see my presentation with
jupyter nbconvert notebook.ipynb --to slides --post serve
Doing this I also obtain a notebook.slides.html file. But if I open that file with my browser, the slides are not rendered, I obtain a basic html page. I would like to know how can I render the slides in a browser directly from the html file ?
For example, if you open the demo.html file of reveal.js the slides are directly rendered.
I am embedding some images in my markdown notebook cells by way of:
<img src=" C:\my\path\Pics\basic_coupled_inductors.png" height="20" width="550">
This renders OK in the notebook itself, and also gets properly translated when I save it to static HTML.
Thinks do not work if I try to convert to pdf:
jupyter nbconvert --to pdf my_notebook.ipynb
The result is just text, no images.
How should I include my images in the notebook so that they both show when I am working on it, and when I create a PDF from it?