jupyterhub / mybinder.org-user-guide

Turn a Git repo into a collection of interactive notebooks. This is Binder's user documentation repository.
https://mybinder.readthedocs.io
BSD 3-Clause "New" or "Revised" License
162 stars 103 forks source link

Wishlist: Parametrize notebook #175

Open yarikoptic opened 5 years ago

yarikoptic commented 5 years ago

I was pondering on this question for a while but found no answer, so please pardon me if there is already a way to do this. References on howto would be well appreciated.

The desire is to not only have a URL to a binder with url/path to the notebook in it, but to pass in the url server side options parameters into the notebook (eg a URL for a file that notebook should process, or parameters to the analysis pipeline) so user doesn't have to modify notebook to run it.

I think the easiest and most flexible way would be to be able to provide in url options environment variables so they become accessible within notebook to query via standard to the notebook kernel language mechanisms. This will open opportunities for many use cases where a single notebook could cater multiple scenarios (the same analysis pipeline with different parameters, visualization engine for external resources, etc)

PS just a brief description ATM since I am on a phone and couldn't hold the idea to myself any longer. I will expand on it later if needed

manics commented 5 years ago

I had a similar thought over on the Disource forum: https://discourse.jupyter.org/t/pass-parameters-to-a-notebook-on-jupyterhub-binderhub/1973/

How about we continue the discussion there?

yarikoptic commented 5 years ago

Great! Thanks for linking - I will check them all out before further follow up here. Cheers