changxin commited on
Commit
7b15315
·
1 Parent(s): 8bdaf16

Create new file

Browse files
Files changed (1) hide show
  1. templates/jupyter_notebook.html +20 -0
templates/jupyter_notebook.html ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% import 'macro' as macro %}
2
+
3
+ <script>
4
+ require.config({
5
+ paths: {
6
+ {{ config_items | join(', ') }}
7
+ }
8
+ });
9
+ </script>
10
+
11
+ {% for chart in charts %}
12
+ {% if chart._component_type in ("table", "image") %}
13
+ {{ macro.gen_components_content(chart) }}
14
+ {% else %}
15
+ <div id="{{ chart.chart_id }}" style="width:{{ chart.width }}; height:{{ chart.height }};"></div>
16
+ {% endif %}
17
+ {% endfor %}
18
+
19
+ {{ macro.render_notebook_charts(charts, libraries) }}
20
+ Footer