You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jupyter book to create reports, using the capability to build an HTML page from a single notebook, then saving to PDF via google chrome. I've found that while matplotlib and plotly figures will be correctly moved to the next page if they appear close to the end of a page, bokeh figures will not and will get broken across page breaks.
I can work around this by adding the following HTML code to the notebook:
<styletype="text/css" media="print">/* make sure bokeh plots don't get split across PDF page boundaries */div.bk-root {
page-break-inside: avoid;
}
</style>
I was just wondering if there was a better way, e.g., some way this could be handled within the jupyterbook CSS or something like that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I'm using jupyter book to create reports, using the capability to build an HTML page from a single notebook, then saving to PDF via google chrome. I've found that while matplotlib and plotly figures will be correctly moved to the next page if they appear close to the end of a page, bokeh figures will not and will get broken across page breaks.
I can work around this by adding the following HTML code to the notebook:
I was just wondering if there was a better way, e.g., some way this could be handled within the jupyterbook CSS or something like that.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions