add notebook loader and custom template#211
Conversation
|
Related reviews are in origin pull request #210 (which mixed some unrelated changes, so I closed it) |
|
|
||
| def render_notebook(content): | ||
| nb = nbformat.reads(content, nbformat.NO_CONVERT) | ||
| (output, resources) = nbconvert.HTMLExporter(template_file='./klaus/templates/my_full.tpl').from_notebook_node(nb) |
There was a problem hiding this comment.
Moved from #210
jonashaag: my_full? Confusing name :-D
lzfxxx: It's just a little CSS modification of nbconvert template 'full', cause the width in @media setting of that template will make the html overflow the markup div. The naming is not very clear, do you have any suggestions?
jonashaag: I see! In this case could we simply use the default template and add the CSS fixes to klaus' CSS file? Or if that doesn't work, can we use inheritance to override the CSS instead of copy-pasting the whole file?
|
Moved from #210
|
(cherry picked from commit 8d91705)
No description provided.