Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FROM gcr.io/deeplearning-platform-release/base-cpu:${BASE_TAG}

ADD clean-layer.sh /tmp/clean-layer.sh
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
ADD patches/template_conf.json /opt/kaggle/conf.json

# This is necessary for apt to access HTTPS sources
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion patches/nbconvert-extensions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All cell metadata starting with '_kg_' will be included with its value ({key}-{v
as a class in the cell's DIV container
#}

{% extends 'full.tpl'%}
{% extends 'classic/index.html.j2'%}
{% block any_cell %}
<div class="{% for k in cell['metadata'] if k.startswith("_kg_") %}{{k}}-{{cell['metadata'][k] | lower}} {% endfor %}">
{{ super() }}
Expand Down
13 changes: 13 additions & 0 deletions patches/template_conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"base_template": "classic",
"mimetypes": {
"text/html": true
},
"preprocessors": {
"100-pygments": {
"type": "nbconvert.preprocessors.CSSHTMLHeaderPreprocessor",
"enabled": true,
"style": "default"
}
}
}