nbconvert

No template sub-directory with name 'lab' found in the following paths

情到浓时终转凉″ 提交于 2021-02-08 15:38:10
问题 I am running a python azure function which is running a jupyter notebook via the nbconvert API. This was working for a time, although without deploying new code I have started to get the following error: No template sub-directory with name 'lab' found in the following paths:\n\t/home/.local/share/jupyter\n\t/usr/local/share/jupyter\n\t/usr/share/jupyter The code I am using to achieve this is: from nbconvert.preprocessors import ExecutePreprocessor from nbconvert import HTMLExporter ... dl =

How to show all DataFrame/ table columns for wide tables while exporting as pdf from Jupyter using nbconvert?

↘锁芯ラ 提交于 2021-01-29 08:34:39
问题 This question is linked to Jupyter nbconvert LaTex Export Theme I am trying to export my Jupyter Notebook as a .pdf using nbconvert through the terminal (on Mac). I already created a .tplx template that will hide the code and show only outputs and markdowns. # this is my jupyter notebook heading pd.set_option('display.notebook_repr_html', True) pd.set_option('display.expand_frame_repr', True) pd.set_option("display.latex.repr", True) pd.set_option("display.latex.longtable", True) pd.set

Is there a way to fix jupyter notebook css to allow page breaks?

泄露秘密 提交于 2021-01-28 07:09:40
问题 I want to generate a pdf from a custom-formatted jupyter notebook. I have managed to do that with in two steps: jupyter nbconvert --to html mynotebook.ipynb Using chrome to-pdf-print chrome --headless --to-pdf-print=mynotebook.pdf mynotebook.html I prefer to stick to the HTML/CSS stack - rather than LaTeX - as this gives the best results for graphs. Now, the one thing that I can't get to work is to add page breaks using CSS page-break-before . This issue in the nbconvert project mentions that

How to run nbconvert on notebook in google colaboratory

断了今生、忘了曾经 提交于 2021-01-21 05:19:42
问题 I have a simple jupyter notebook, say foo.ipynb . I wish simply to run nbconvert in the usual way: on my local machine I would execute !jupyter nbconvert foo.ipynb in the notebook itself, or jupyter notebook foo.ipynb in a shell. On Google Colaboratory, this does not work. Of course this is because foo.ipynb is not running locally on the drive, but the usual methods to connect Drive and Colab are not working in this case. Question: is running nbconvert on a Colab notebook possible from within

nbconvert: exporting to another directory?

一个人想着一个人 提交于 2021-01-02 06:47:30
问题 I'm wondering if it's possible to export a Jupyter notebook to a different directory than the same directory as the notebook itself? I'm using this to build HTML versions of the notebooks, and I'd like them to reside under docs/ in my GitHub repo (this is to take advantage of GH-pages). 回答1: NBConvert's --output-dir argument does this: https://nbconvert.readthedocs.io/en/latest/install.html You can use it from the command line or from within a Jupyter notebook. Command line: jupyter nbconvert

Is there a way in markdown to override default mathjax renderer?

好久不见. 提交于 2020-07-22 22:11:45
问题 I'm writing a slide using jupyter/markdown/mathjax/nbconvert. Turns out that the default mathjax renders poorly: The svg renderer however functions properly: Unfortunately this renderer is lost everytime I refresh the webpage. Is there a way to override this in jupyter/markdown/mathjax/nbconvert? 来源: https://stackoverflow.com/questions/54719132/is-there-a-way-in-markdown-to-override-default-mathjax-renderer

Is there a way in markdown to override default mathjax renderer?

戏子无情 提交于 2020-07-22 22:11:22
问题 I'm writing a slide using jupyter/markdown/mathjax/nbconvert. Turns out that the default mathjax renders poorly: The svg renderer however functions properly: Unfortunately this renderer is lost everytime I refresh the webpage. Is there a way to override this in jupyter/markdown/mathjax/nbconvert? 来源: https://stackoverflow.com/questions/54719132/is-there-a-way-in-markdown-to-override-default-mathjax-renderer

Jupyter nbconvert LaTex Export Theme

送分小仙女□ 提交于 2020-07-09 05:28:28
问题 I am using Jupyter Notebook nbconvert (Save as menu) to export as pdf via Latex. However, the pdf file is not in a good shape. For example, some wide tables are shown well. I would prefer to have a box for tables to be resized to the width of the page. Is there any style, template that I can use to have nice reports and how I may ask nbconverter to use that style? Here is the Latex output: I would like something like this: 回答1: Looks like Pandas gained a ._repr_latex_() method in version 0.23