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

converted notebook contains a part of raw notebook #183

Closed
abchenson opened this issue Apr 20, 2018 · 5 comments · Fixed by #611
Closed

converted notebook contains a part of raw notebook #183

abchenson opened this issue Apr 20, 2018 · 5 comments · Fixed by #611

Comments

@abchenson
Copy link

abchenson commented Apr 20, 2018

I converted the attached notebook as part of a sphinx build and got the attached html. As you can see there is a problem: the end of the html has a load of raw stuff from the nb printed out.

When I created the notebook, ran it and saved it I did not see this problem. Then I shut the notebook, reloaded it, ran it and saved again. At that point the error appeared. The part of the notebook at which the raw stuff begins starts after the string "Export to plot.ly" and around that point tere are a lot of escaped "s. But that is as far as I got diagnosing the problem.

nbsphinx (0.3.1)
nbconvert (5.3.1)
Sphinx (1.7.0)

reproduce_nbconvert_bug.zip

@mgeier
Copy link
Member

mgeier commented Apr 23, 2018

What happens if you use nbconvert to convert your notebook to HTML?

@abchenson
Copy link
Author

Yes the problem exists there, I'll raise an issue with them.

reproduce_plotly_err.html.zip

@mgeier
Copy link
Member

mgeier commented May 19, 2018

For reference, this is the issue created by @abchenson: jupyter/nbconvert#802.

@maartenbreddels
Copy link

jupyter/nbconvert#1665 needs to be ported to nbsphinx if merged to fix this.

@mgeier
Copy link
Member

mgeier commented Nov 24, 2021

Alternatively, this should be fixed by #611.

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 a pull request may close this issue.

3 participants