Skip to content

Commit 3ce5712

Browse files
authored
1 parent 773d26f commit 3ce5712

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM gcr.io/deeplearning-platform-release/base-cpu:${BASE_TAG}
66

77
ADD clean-layer.sh /tmp/clean-layer.sh
88
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
9+
ADD patches/template_conf.json /opt/kaggle/conf.json
910

1011
# This is necessary for apt to access HTTPS sources
1112
RUN apt-get update && \

patches/nbconvert-extensions.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All cell metadata starting with '_kg_' will be included with its value ({key}-{v
44
as a class in the cell's DIV container
55
#}
66

7-
{% extends 'full.tpl'%}
7+
{% extends 'classic/index.html.j2'%}
88
{% block any_cell %}
99
<div class="{% for k in cell['metadata'] if k.startswith("_kg_") %}{{k}}-{{cell['metadata'][k] | lower}} {% endfor %}">
1010
{{ super() }}

patches/template_conf.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"base_template": "classic",
3+
"mimetypes": {
4+
"text/html": true
5+
},
6+
"preprocessors": {
7+
"100-pygments": {
8+
"type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor",
9+
"enabled": true,
10+
"style": "default"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)