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

nbconvert does not output in current directory by default #449

Closed
matthiaskoenig opened this issue Oct 21, 2016 · 2 comments
Closed

nbconvert does not output in current directory by default #449

matthiaskoenig opened this issue Oct 21, 2016 · 2 comments
Milestone

Comments

@matthiaskoenig
Copy link

In older versions nbconvert wrote the output files in the current directory.
This is also stated in the documentation

jupyter nbconvert --help
...
--output-dir=<Unicode> (FilesWriter.build_directory)
    Default: ''
    Directory to write output to.  Leave blank to output to the current
    directory

Default is blank, so should output to the current directory.

I updated jupyter to 4.2.0 and now the output is written by default next to the input files.
There is mismatch between documentation and actual behavior (which changed compared to earlier versions).

@mpacer
Copy link
Member

mpacer commented Oct 21, 2016

There are a number of other issues related to this — e.g., #337, #293.

The docs should change to reflect the current state. I'll make a note of that.

If you wish to recover this default behaviour, you can go to your ~/.jupyter/jupyter_nbconvert_config.py and add the line c.FilesWriter.build_directory='.' and it will change it back to the older default.

Then if you wanted to recover the new default behaviour you would need to add the flag --output-dir '' to your command line invocation.

@mpacer mpacer closed this as completed Oct 21, 2016
@mpacer
Copy link
Member

mpacer commented Oct 21, 2016

opened #450 to address the doc/help issue.

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

No branches or pull requests

3 participants