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
qtconsole ipython 0.13.2 - html/xhtml export fails #3807
Comments
Probably a unicode-handling bug in our code that only affects Python 3. |
Isn't it an issue that #4043 may suddenly solve ? |
nop. Qtconsole has nothing to do with ipynb files. |
Hello, On my windows pc With Python 2.7 / ipython 0.13.2 or ipython 1.0.0rc1, everything works (inlining or not inlining the png). With Python 3.3 / ipython 1.0.0 (patched with 4043), it asks me where to save the .html, then the "inline / external" question doesn't show up, then I get in the dos windows the same message remark Trying to digg further , I found a reference to a remark from GaelVaroquaux |
I don't know if it can help a competent "doctor", but If I spy the "image_tag" coming to ensure_utf8(image_tag)
|
It's a fairly straightforward bug: when saving to HTML, we explicitly encode to utf8 bytes, rather than leaving as unicode, which is pretty clearly inappropriate. PR #4054 should address the issue, though I don't have access to a Python 3 environment with working Qt, so it needs some help testing. |
Hello MinRK, I confirm that, under windows32 bit, python3.3, ipython2.0.0dev, it solves the issue
Looking further, there is an option ".xhtml" just below the ".html" one. If I try it now out of the box
The message is much less limpid than the option to launch it, which is 'odd' for a newcomer. |
It's a bit silly to call it 'xhtml', the main thing is that it is HTML with inline SVG, and you can only do that if your figures are SVGs. If you add that config |
ok, I type that in my qt console |
Hm, I will have to test with Python 3 to make sure there isn't another issue to fix (there may well be). |
I didn't try 'xhtml' in python2 either ... let see
|
not utf8-encoded bytes should close ipython#3807
I'm not at my box at the moment. I'll check in a few hours. |
Works like a charm. Tried out the xhtml/inline export. Thanks! |
not utf8-encoded bytes should close #3807
not utf8-encoded bytes should close ipython#3807
Hi,
I'm having problems trying to export qtconsole sessions to html/xhtml on my linux box(Macbook Pro). I'm running python 3.3.2.
The html export fails with:
The xhtml export fails with :
'Type string doesn't support the buffer API'
Am I doing something wrong?
Cheers
The text was updated successfully, but these errors were encountered: