Commit 86b57af5 authored by Shiny Kalapurakkel's avatar Shiny Kalapurakkel
Browse files

Adding template and postbuild files

parent 66f4bdc2
# timestamp to invalidate JupyterHub server cache
TIMESTAMP=`date +'%s'`
# add CodeMirror config
mkdir -p ~/.jupyter/nbconfig
echo '{"CodeCell":{"cm_config":{"lineNumbers":true,"theme":"oreillybat"}}}' \
> ~/.jupyter/nbconfig/notebook.json
# configure custom templates
mkdir -p ~/.jupyter/templates
echo "c.NotebookApp.extra_template_paths = ['~/.jupyter/templates']" \
> ~/.jupyter/
cat << EOF > ~/.jupyter/templates/page.html
{% extends "templates/page.html" %}
{% block stylesheet %}
{# stylesheets and any js that needs to load before everything else #}
<link rel="stylesheet" href="" type="text/css"/>
window.notebookIdentifier = '$NOTEBOOK_FPID';
window.contextIdentifier = '$CONTEXT_IDENTIFIER';
<script src="$TIMESTAMP"></script>
<script src="$TIMESTAMP"></script>
<script src="$TIMESTAMP"></script>
{% endblock %}
{% block script %}
{# js that should load after dom is ready #}
<script src="$TIMESTAMP"></script>
{% endblock %}
BINDER_DIR=`dirname "${0}"`
rm "${0}"
if [ -f "${BINDER_DIR}/postBuild.original" ]
mv "${BINDER_DIR}/postBuild.original" "${BINDER_DIR}/postBuild"
# vim: ft=sh
\ No newline at end of file
![Powered by Jupyter Logo](
This project contains the Jupyter Notebooks and supporting files for _${COURSE TITLE}_ with ${INSTRUCTOR}.
These notebooks can be run on the O'Reilly Learning Platform [here](${NOTEBOOK_FPID}).
It contains both the exercises (/notebooks), possibly the solutions (/solutions), as well as any data or files needed (/data).
This is a public repository so there is no need to create an account to download its contents. To download the source code from this page, click the 'Cloud' icon on the top right hand, above where the latest commit is detailed.
To download via git from your preferred terminal application, type:
```git clone${END OF URL}```
## Please list additional packages with version numbers
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment