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

How to pass parameters to the exporter? #463

Open
sappjw opened this issue Jan 3, 2020 · 1 comment
Open

How to pass parameters to the exporter? #463

sappjw opened this issue Jan 3, 2020 · 1 comment
Labels

Comments

@sappjw
Copy link

sappjw commented Jan 3, 2020

I have c.InteractiveShell.pdb = True set in my default profile's ipython_config.py so I can more easily debug when I'm developing. But when running papermill I would like to use a different IPython profile, or at least change this setting on the command-line. Is there a preferred way to do this in papermill? This may be related to #387.

@MSeal MSeal added the question label Jan 6, 2020
@MSeal
Copy link
Member

MSeal commented Jan 6, 2020

Today it's kind of a pain afaik. You could try adding %config c.InteractiveShell.pdb = False at the top of your notebook. If that works you could also make a custom engine that passes the config this way at the start of your papermill execution before it runs the rest of the cells. Another option might be to make a different ipython kernel for debugging / non-debugging and select the kernel you want to use at that time with -k <kernel_name>.

There is this proposal which would enable the ipython kernel to take config as part of it's API contract: jupyter/enhancement-proposals#46 in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants