danielballan / nbexamples

distribute notebooks for users to copy via a web interface
Other
69 stars 23 forks source link

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

Open danielballan opened 9 years ago

danielballan commented 9 years ago

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
danielballan commented 8 years ago

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

hhslepicka commented 8 years ago

@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).