jupyterlab_templates icon indicating copy to clipboard operation
jupyterlab_templates copied to clipboard

Route to create notebook from template

Open zac-yang opened this issue 4 years ago • 2 comments

Hi @timkpaine, we've been using the extension recently and loving it! Thanks for all the work creating this. I'm wondering how feasible it would be to add a new route to the server extension that would create a new notebook from an existing template, and open it in JupyterLab? The use case here would be an external page/web app that wants to get a user into JupyterLab with the templated notebook in one click, without requiring the user to click through the Launcher & modal, as is the case currently.

zac-yang avatar May 20 '20 16:05 zac-yang

If you/we were to add code to the JS lab plugin to parse a query argument, you could make urls like http://<your_domain_here>/lab/?create_from_template=templatepath.ipynb&reset do what you want I think. I.e. changes to the server extension might not be needed.

vidartf avatar May 21 '20 16:05 vidartf

Thanks @vidartf for the input! (I was just pondering the server extension side as I saw existing routes there. Also as I'm far more familiar in python than javascript :))

zac-yang avatar May 26 '20 18:05 zac-yang