私はJupyter notebook
をLaTex
でnbconvert
を介してPDFに変換するためにJinja2
テンプレートを書こうとしています。私の現在の試みは、マークダウン細胞や画像のキャプションを表示し、また私のmatplotlibのグラフのすべての上に次の出力を示していません:Jupyter nbconvert用のJinja2テンプレートを作成してマークダウンを表示し、出力番号を抑制する方法は?
out[1]: <matplotlib.axes._subplots.AxesSubplot at 0x2e62e885cc0>
私は値下げ細胞とキャプションを表示するようにし、matplotlibのオブジェクト記述を抑制したいと思います。
私の現在のテンプレートはnbconvertのgithubのレポでホストされているものから適応とされ、次のようにされています。これは、ほとんどの多くのように思えるん
% Default to the notebook output style
((* if not cell_style is defined *))
((* set cell_style = 'style_ipython.tplx' *))
((* endif *))
% Inherit from the specified cell style.
((* extends cell_style *))
%===============================================================================
% Latex Book
%===============================================================================
((* block docclass *))
\documentclass{report}
((* endblock docclass *))
% Author and Title from metadata
((* block maketitle *))
((*- if nb.metadata["latex_metadata"]: -*))
((*- if nb.metadata["latex_metadata"]["title"]: -*))
\title{(((nb.metadata["latex_metadata"]["title"])))}
((*- endif *))
((*- else -*))
\title{(((resources.metadata.name)))}
((*- endif *))
\date{\today}
\maketitle
((* endblock maketitle *))
((* block markdowncell scoped *))
(((cell.source | citation2latex | strip_files_prefix | convert_pandoc('markdown+tex_math_double_backslash', 'json',extra_args=[]) | resolve_references | convert_pandoc('json','latex', extra_args=["--chapters"]))))
((* endblock markdowncell *))
% Disable input cells
((* block input_group *))
((* endblock input_group *))