diff --git a/setup.py b/setup.py
index 3064183..4627ec7 100644
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,7 @@ def user_dir():
class DevelopCmd(develop):
prefix_targets = [
+ ("nbconvert/templates", 'material'),
("voila/templates", 'material')
]
def run(self):
@@ -77,7 +78,7 @@ def run(self):
# WARNING: all files generates during setup.py will not end up in the source distribution
data_files = []
# Add all the templates
-for (dirpath, dirnames, filenames) in os.walk('share/jupyter/voila/templates/'):
+for (dirpath, dirnames, filenames) in os.walk('share/jupyter/'):
if filenames:
data_files.append((dirpath, [os.path.join(dirpath, filename) for filename in filenames]))
@@ -96,7 +97,7 @@ def run(self):
'ipython',
'jupyter',
'widgets',
- 'voila'
+ 'voila==0.2.0a1'
],
cmdclass={
'develop': DevelopCmd,
diff --git a/share/jupyter/nbconvert/templates/material/conf.json b/share/jupyter/nbconvert/templates/material/conf.json
new file mode 100644
index 0000000..ff4bfee
--- /dev/null
+++ b/share/jupyter/nbconvert/templates/material/conf.json
@@ -0,0 +1 @@
+{"base_template": "lab"}
\ No newline at end of file
diff --git a/share/jupyter/nbconvert/templates/material/index.html.j2 b/share/jupyter/nbconvert/templates/material/index.html.j2
new file mode 100644
index 0000000..38bb8fc
--- /dev/null
+++ b/share/jupyter/nbconvert/templates/material/index.html.j2
@@ -0,0 +1,100 @@
+{%- extends 'lab/index.html.j2' -%}
+
+{# this overrides the default behavior of directly starting the kernel and executing the notebook #}
+{% block notebook_execute %}
+{% endblock notebook_execute %}
+
+{%- block html_head_css -%}
+{{ super() }}
+{% if resources.theme == 'dark' %}
+{% set bar_color = '#555454' %}
+{% else %}
+{% set bar_color = '#5cbcaf' %}
+{% endif %}
+{{ resources.include_css("static/materialize.min.css") }}
+
+
+
+
+
+{%- endblock html_head_css -%}
+
+{%- block body -%}
+{%- block body_header -%}
+ {{ super() }}
+