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: Ability to specify name of output file #3799
Comments
Open for conversation |
Makes sense - should be easy, right? |
Does it make sense for it to be a configurable on FilesWriter? Or not, because one writer can be used to write out many notebooks. |
+1 |
Well, I think the FilesWriter is supposed to be stateless... But I was not thinking about supporting the renaming individual outputs, I was more thinking of the ability to prefix/suffix each file written (not the extracted files). Something like:
Which would be useful if someone wanted to export reveal and html which doesn't work now since the output names would cause the later to overwrite the earlier. |
@Carreau ? |
But the question is where to you specify that, such that it is configurable per-notebook in a multi-export run. Perhaps in NbConvertApp, and only allow it when |
I personally was not thinking about putting it in nbconvertapp.py, I was just thinking about replacing this line with a str.format(...) |
And not even caring if the user doesn't include the {name} key (or whatever it will be called)... |
ok |
Brought up in a conversation between @Carreau and I. Maybe add a traitlet to the
FilesWriter
and add a convenience flag to thenbconvertapp.py
.The text was updated successfully, but these errors were encountered: