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

Advanced Notebook Tutorial throws error exporting to PDF #18

Closed
polyatail opened this issue Apr 24, 2019 · 0 comments
Closed

Advanced Notebook Tutorial throws error exporting to PDF #18

polyatail opened this issue Apr 24, 2019 · 0 comments

Comments

@polyatail
Copy link
Contributor

@boydgreenfield commented on Mon Apr 22 2019

@clausmith commented on Wed Apr 17 2019

Steps to reproduce:

  1. Visit https://app.onecodex.com/notebooks/public/afe5c91e11c644c5 and copy the notebook
  2. Open the copied notebook for editing
  3. Click File > Download As > PDF Report

Jupiter throws the following 500 error:

Screenshot 2019-04-17 10 59 45


@polyatail commented on Tue Apr 23 2019

All the e.g., <h4> tags generated by converting jupyter markdown to HTML are apparently assigned IDs with the exact text of the heading tag. For example:

### Let's go fly a kite!

Yields something like:

<h4 id="Let's go fly a kite!">Let's go fly a kite!</h4>
<a href="#Let's go fly a kite!">&nbsp</a>

Weasyprint doesn't like quotes in links:

Kozea/WeasyPrint#774

Notebook service has weasyprint==44. Upgrading to 47 seemed to fix the problem. We should push an update to onecodex==0.5.0 anyway and can do both at once.


@boydgreenfield commented on Tue Apr 23 2019

Huh, that's bizarre. OK. Let's push an update to the notebook image tomorrow @polyatail.

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

1 participant