nbconvert cut off markdown images when converting notebook - jupyter-notebook

I am trying to convert a Jupyter Notebook, containing markdown and code cells to pdf via jupyter nbconvert --to pdf notebook.ipynb.
This works well as expected, however I have troubles to display images which are set into markdown tables like:
Figure1 | Figure 2
:-------------------------:|:-------------------------:
![](first.jpg) | ![](second.jpg)
for more than two images, the pdf is perfectly rendered and the images are displayed next to each other without any problems.
However, for exactly two images, the images are much too big and the second image gets cut off (all images have same size).
Is there any quick-fix to solve this issue? The notebook has a lot of images, so I want to avoid changing every markdown table.

Related

Hold added image position in R markdown

I want to add an image in the middle of R markdown report, but when I knit it to pdf, the image appears on the top of the page, not in the intended place. Here is what I use in R markdown:
![help_dataframe_screenshot](help_dataframe_screenshot.png)
Anyone knows how to fix it? I need the image at where I insert it, not on the page top.

Is there a way to preserve output cell scrolling when converting a Jupyter Notebook to HTML?

I like that output cell scrolling allows me to contain a lot of information in a small space. But if I convert my notebook to HTML, the doc doesn't have the scrolling. Is there a way to preserve this formatting in the converted doc?
Before:
After:
This happens with both nbconvert and Download As HTML.
Also, if there was a way to preserve the original shading and other formatting details, I would appreciate hearing that as well.

Flexdashboard - Scroll multiple graphs written under a single R chunk

I'm trying to create a flexdashboard with several tabs. One of them needs to include multiple graphs (~50). I produce the graphs under one single chunk within a loop (because numbers of graphs varies each time). What I get in the output is showing only some graphs without being able to scroll to see the rest of them. Scroll is totally deactivated but graphs are printed.
So far I've tried and didn't work to:
change the vertical_layout = scroll
adjust the row-height but graphs got shrunk (not readable)
download latest version of flexdashboard
include some CSS style (overflow-x: scrollbar;)
run the same in simple rmakrdown and works fine
when you put each graph in different chunk, scroll works properly but it doesn't solve my problem
Any ideas?
Thank you

Jupyter notebook table style changes when saved as html

I'm using jupyter notebook version 5.2.2 with python
When I display a DataFrame in the notebook the table style looks really nice. Especially the alternating grey and white row colors. When I save the notebook as html the nice style disappears.
Is there any way to keep the style that appears in the notebook itself?
Unfortunately, there is no way to achieve this. I have run into this problem before. When you convert the notebook to HTML you lose that styling.

How do I use markdown to generate a PDF will full background-color/image bleed?

I have a simple markdown document that has either a background color or background image defined in the stylesheet I'm using to render it. When I export to PDF (using marked.app, mou.app, markdown pro, Multimarkdown Composer etC), I'd like that background to be full-bleed on the page with no margin or padding (i.e. no surrounding whitespace), much like something you'd create in illustrator.
Here is an example. (Reference the cover page). This will be used solely for on-screen consumption so I'm not worried about printing.
Can anyone suggest how to do this or a mac app that can do this?
Thanks!

Resources