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

Test no incorrect 'data:image/png;base64,b' in html files. #4036

Closed
wants to merge 1 commit into from

Conversation

stonebig
Copy link
Contributor

Check that HTML conversion of a notebook with images by "nbconvert --to html" is ok.

It currently fails under python3 (detected in issue #3903 )

bad transformation =
img src="data:image/png;base64,b'iVBOR....

good transformation =
img src="data:image/png;base64,iVBOR....

@takluyver
Copy link
Member

Is it going to be an easy fix? I'd rather merge test+fix than a knownfailure test. ;-)

@stonebig
Copy link
Contributor Author

I confirm it solves the issue in python3.

@minrk
Copy link
Member

minrk commented Aug 15, 2013

PR #4043 should actually fix the issue - needs further and careful testing, but it appears this was a bug in nbformat.

@astrojuanlu
Copy link
Contributor

Confirmed that it fails with Python 3 and gives correct result on Python 2.

minrk added a commit to minrk/ipython that referenced this pull request Sep 3, 2013
it makes no sense to turn base64-encoded unicode strings into base64-encoded byte strings.  I can't think why we do this, but we should be very careful about testing before merging this fix.

fixes the issue tested in ipython#4036.
@minrk minrk closed this in 5a27a13 Sep 6, 2013
minrk added a commit that referenced this pull request Sep 9, 2013
It makes no sense to turn base64-encoded unicode strings into base64-encoded byte strings.
I can't think why we do this, but we should be very careful about testing before merging this fix.

fixes the issue tested in #4036.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
it makes no sense to turn base64-encoded unicode strings into base64-encoded byte strings.  I can't think why we do this, but we should be very careful about testing before merging this fix.

fixes the issue tested in ipython#4036.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
don't 'restore_bytes' in from_JSON 

It makes no sense to coerce base64-encoded unicode strings into base64-encoded byte strings.

closes ipython#4036
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.

None yet

4 participants