-
Notifications
You must be signed in to change notification settings - Fork 579
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
Adds dejavu #1599
Adds dejavu #1599
Conversation
I also have an example notebook in case you're interested in starting an example session. =) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting! So the intend is to mimic voila default behavior? Should we make this a template extension of reveal rather than a new App to avoid command confusion maybe?
@SylvainCorlay @maartenbreddels would like your input
Voilà is really just nbconvert + live kernel and widgets except that by default, inputs and prompt numbers are hidden. The goal of déjàvu is to provide a shortcut for nbconvert that has the same defaults as Voilà. TemplateExporter.exclude_input = True # Hide inputs
TemplateExporter.exclude_output_prompt = True # Hide prompts
TemplateExporter.exclude_input_prompt = True # Hide prompts
ExecutePreprocessor.enabled = True # Execute notebook
WebPDFExporter.paginate = False # Prevent WebPDF pagination We could not make it an alias because one should be able to overwrite these options (like in the case of Voilà). I am not sure if we should default to HTML or WebPDF. |
So Sylvain and I were talking about this and we got in an agreement that's better to generate an html file so it exhibits the exact same result as voila. Even though pdf seems like a more useful format it produces a different less elegant result than when converted to html. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright sounds reasonable to me. There's a doc build issue seems unrelated to this PR. There's been some issues with the new version of Sphinx that were unresolved last time I checked that we were working around.
Thanks @MSeal, soon I'll also be publishing a blog post that talks a bit about it + nbconvert! :) |
Great! I think if we can also address #1401 this week we should do a patch release with the changes this weekend so they're available to others. |
This is the first PR to introduce the Dejavu feature.
Dejavu intends to be a tool to facilitate for the Jupyter user to generate static pdf outputs for their notebooks mimicking the behavior of voilà. So, with one command line you get all the presets configured for you, generating a pdf presentation:
I'm trying to mimic
voila
's results with this. For future PRs we'll probably have to change or add a new template configuration so we can have a correct pagination.Please let me know what you think of it!
cc: @SylvainCorlay