Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibility start parametrized notebook server instead of only headless execution / write parametrized notebook to *.ipynb #64

Open
lukasheinrich opened this issue Dec 15, 2017 · 6 comments
Labels
idea An idea which is open to discussion rather than a particular issue or bug

Comments

@lukasheinrich
Copy link
Contributor

I love the run_notebook option and this is probably the main use-case, but sometimes i'd like to be able (or better have a service to which I don't have direct access to like binder) to start an interactive notebook server but with the parameters predetermined

a la

papermill save --input input.ipynb --parameter a='hello world' --output output.ipynb
jupyter notebook.ipynb

or better

papermill serve input.ipynb --parameter a='hello world' 

would others see this as useful as well?

@rgbkrk
Copy link
Member

rgbkrk commented Dec 16, 2017

Thinking of this in another way, I think without papermill we could do this with a frontend that was dedicated to doing it rather than making it part of a CLI tool.

Basically, a workflow of "click template notebook, fill in params, open". Which would also mean that you could probably write a CLI tool around this service itself.

@lukasheinrich
Copy link
Contributor Author

A frontend is useful if you want to have users determining parameters, but say I want to run a servie, where I spin up a notebook for the user, but the parameters are determined server-side. I'd like to grab a parametrized notebook, contextualize it for the user and point her to a URL where they can access the already-contextualized notebook

@lukasheinrich
Copy link
Contributor Author

asked in another way: say I wanted to write such a service, could I use papermill to do the heavy-lifting?

https://github.com/nteract/papermill/blob/master/papermill/execute.py#L186

seems like the right method, but it looks like it's supposed to be internal.

@rgbkrk
Copy link
Member

rgbkrk commented Dec 16, 2017

I think we could make it externally facing, then you'd probably be able to build a server extension for the notebook that does this.

@lukasheinrich
Copy link
Contributor Author

Yes, I think having that as part of the API would be great.

@lukasheinrich lukasheinrich changed the title posisbility start paremetrized notebook server instead of only headless execution / write parametrized notebook to *.ipynb possibility start parametrized notebook server instead of only headless execution / write parametrized notebook to *.ipynb Jan 24, 2018
@MSeal
Copy link
Member

MSeal commented Aug 3, 2018

I think we'd need to add a target-kernel option, though there's complexity with adding this. I'd like to work towards making notebook execution abstracted to executor= options where one could register a new executor option. If we start down that road I can add back to this thread with possible options based on that.

@MSeal MSeal added the idea An idea which is open to discussion rather than a particular issue or bug label Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea An idea which is open to discussion rather than a particular issue or bug
Projects
None yet
Development

No branches or pull requests

3 participants