File: template.tpl

package info (click to toggle)
jupyter-notebook 4.2.3-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 7,804 kB
  • sloc: python: 8,698; makefile: 240; sh: 74
file content (20 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{%- extends 'rst.tpl' -%}

{% macro notebooklink() -%}

`View the original notebook on nbviewer <http://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/docs/{{ resources['metadata']['path'] }}/{{ resources['metadata']['name'] | replace(' ', '%20') }}.ipynb>`__


{%- endmacro %}

{%- block header %}
{{ notebooklink() }}
{% endblock header -%}

{%- block footer %}
{{ notebooklink() }}
{% endblock footer -%}

{% block markdowncell scoped %}
{{ cell.source | markdown2rst | replace(".ipynb>", ".html>") }}
{% endblock markdowncell %}