-
Notifications
You must be signed in to change notification settings - Fork 2
/
jupyter-jekyll.tpl
92 lines (73 loc) · 2.11 KB
/
jupyter-jekyll.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{% extends 'display_priority.tpl' %}
{%- block header -%}
---
layout: notebook
title: ""
---
{%- endblock header -%}
{% block in_prompt %}
<div class="prompt input_prompt">
In [{{ cell.execution_count }}]:
</div>
{% endblock in_prompt %}
{% block output_prompt %}
{%- endblock output_prompt %}
{% block input %}
```{% if nb.metadata.language_info %}{{ nb.metadata.language_info.name }}{% endif %}
{{ cell.source }}
```
{% endblock input %}
{% block error %}
{{ super() }}
{% endblock error %}
{% block traceback_line %}
{{ line | indent | strip_ansi }}
{% endblock traceback_line %}
{% block execute_result %}
{% block data_priority scoped %}
{{ super() }}
{% endblock %}
{% endblock execute_result %}
{% block stream %}
{%- if output.name == 'stderr' -%}
<div class="warning" style="border:thin solid red">
{{ output.text | indent(4) | wrap_text(80) }}
</div>
{%- else -%}
<div class="output_area"><div class="prompt"></div>
<pre>
{{ output.text | indent(4) }}
</pre>
</div>
{%- endif -%}
{% endblock stream %}
{% block data_svg %}
{{ output.data['image/svg+xml'] }}
{% endblock data_svg %}
{% block data_png %}
![png](data:image/png;base64,{{ output.data['image/png'] }})
{% endblock data_png %}
{% block data_latex %}
{{ output.data['text/latex'] }}
{% endblock data_latex %}
{% block data_html scoped %}
{{ output.data['text/html'] }}
{% endblock data_html %}
{% block data_markdown scoped %}
{{ output.data['text/markdown'] }}
{% endblock data_markdown %}
{% block data_text scoped %}
{{ output.data['text/plain'] | indent }}
{% endblock data_text %}
{% block markdowncell scoped %}
{{ cell.source }}
{% endblock markdowncell %}
{% block unknowncell scoped %}
unknown type {{ cell.type }}
{% endblock unknowncell %}
{%- block footer -%}
<br>
Right click and choose Save link as... to
[download](https://raw.githubusercontent.com/BiG-CZ/notebook_data_demo/master/notebooks/{{resources['metadata']['name']}}.ipynb)
this notebook, or click [here](https://beta.mybinder.org/v2/gh/BiG-CZ/notebook_data_demo/master?filepath=notebooks/{{resources['metadata']['name']}}.ipynb) to run a live instance of this notebook.
{%- endblock footer -%}