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

Guard against pdf output in IPython display hooks #1202

Merged
merged 1 commit into from
Mar 13, 2017
Merged

Conversation

philippjfr
Copy link
Member

Stops the display hooks from rendering to pdf when plotting in the notebook, however exported plots will still be pdf, when fig='pdf' declared. Fixes #519.

@@ -49,7 +49,11 @@ def render(obj, **kwargs):
return render_anim(obj)

backend = Store.current_backend
return Store.renderers[backend].html(obj, **kwargs)
renderer = Store.renderers[backend]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding a comment here about why we want to do this.

@jlstevens
Copy link
Contributor

Looks good. I made one comment but otherwise is it ready to merge?

@philippjfr
Copy link
Member Author

Ready to merge when tests pass.

@jlstevens
Copy link
Contributor

Merging.

@jlstevens jlstevens merged commit 388e679 into master Mar 13, 2017
@philippjfr philippjfr deleted the pdf_guard branch April 19, 2017 21:38
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

Successfully merging this pull request may close these issues.

2 participants