Includes a small Jupyter notebook extension I that can run a notebook that accepts parameters, not quite what you want but might give you some ideas?
Another extension you could look at is nbgitpuller https://jupyterhub.github.io/nbgitpuller/
This clones a git repository passed as a query parameter into your jupyter environment at startup.