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

Is it possible to control the work directory of the notebook when executing it? #1343

Closed
dclong opened this issue Aug 8, 2020 · 1 comment
Labels

Comments

@dclong
Copy link

dclong commented Aug 8, 2020

A jupyter notebook can be executed using the following command. By default, the work directory of the notebook is the directory containing it. However, is this configurable? Can I specify a different work directory for a notebook when executing it?

jupyter nbconvert --to notebook --execute mynotebook.ipynb
@dclong dclong added the question label Aug 8, 2020
@MSeal
Copy link
Contributor

MSeal commented Aug 26, 2020

Sorry I missed this thread originally. No, you can specify the output directory where things will be deposited:

--output-dir= (FilesWriter.build_directory)
Default: ''
Directory to write output(s) to. Defaults to output to the directory of each
notebook. To recover previous default behaviour (outputting to the current
working directory) use . as the flag value.

@dclong dclong closed this as completed Sep 5, 2020
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