danielballan / nbexamples

distribute notebooks for users to copy via a web interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the ability to fill in templated fields when fetching a copy.

danielballan opened this issue · comments

The metadata of an example notebook could list certain names to be templated. When the user fetches a copy of the notebook, the dialog box to provide an input field that will fill in the template, leading to the GET request:

/examples/fetch?example_id=foo.ipynb&dest=my-copy.ipynb&my_field=bar&another_field=aardvark

Attn @hhslepicka -- I think this is similar to what you asked about yesterday.

@danielballan I think so. The idea is really to create a copy of a well defined notebook changing specific values on it based on the URL parameters.

/examples/fetch?example_id=lix_data_processsing.ipynb&dest=run_id_1234.ipynb&data='123456-123142345-234234-234234'&dark='12332234-4234124124-1341341-12412412412'

Where data is the run_start of the data and dark would be the run_start of the dark field images (example).