| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
<!doctype html> |
| 7 |
<html lang="en"> |
| 8 |
<head> |
| 9 |
<meta charset="utf-8" /> |
| 10 |
<title>{% block title %}{{page_title | escape }}{% endblock %}</title> |
| 11 |
|
| 12 |
{% block stylesheet %} {% for css_file in css_files %} |
| 13 |
<link href="{{ css_file | escape }}" rel="stylesheet" /> |
| 14 |
{% endfor %} {% endblock %} {# Copy so we do not modify the page_config with |
| 15 |
updates. #} {% set page_config_full = page_config.copy() %} {# Set a dummy |
| 16 |
variable - we just want the side effect of the update. #} {% set _ = |
| 17 |
page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} |
| 18 |
|
| 19 |
<script id="jupyter-config-data" type="application/json"> |
| 20 |
{{ page_config_full | tojson }} |
| 21 |
</script> |
| 22 |
|
| 23 |
{% block favicon %} {% endblock %} {% for js_file in js_files %} |
| 24 |
<script |
| 25 |
src="{{ js_file | escape }}" |
| 26 |
type="text/javascript" |
| 27 |
charset="utf-8" |
| 28 |
></script> |
| 29 |
{% endfor %} {% block meta %} {% endblock %} |
| 30 |
</head> |
| 31 |
|
| 32 |
<body> |
| 33 |
<script type="text/javascript"> |
| 34 |
// Remove token from URL. |
| 35 |
(function () { |
| 36 |
var parsedUrl = new URL(window.location.href); |
| 37 |
if (parsedUrl.searchParams.get("token")) { |
| 38 |
parsedUrl.searchParams.delete("token"); |
| 39 |
window.history.replaceState({}, "", parsedUrl.href); |
| 40 |
} |
| 41 |
})(); |
| 42 |
</script> |
| 43 |
</body> |
| 44 |
</html> |