I tried to use the IPython display functionality as below:
from IPython.display import display,HTML
display(HTML('<h4>Here is an H4 header</h4>'))
but I get the following error (on Ubuntu 16.04 and on Windows7, using Anaconda Python).
AttributeError: '_io.StringIO' object has no attribute 'softspace'
Below is my config (on Ubuntu):
mjb@NUC ~ $ xonfig
+------------------+----------+
| xonsh | 0.3.4 |
| Python | 3.5.1 |
| PLY | 3.7 |
| have readline | True |
| prompt toolkit | None |
| shell type | readline |
| pygments | 2.1.1 |
| on posix | True |
| on linux | True |
| distro | debian |
| on darwin | False |
| on windows | False |
| on cygwin | False |
| is superuser | False |
| default encoding | utf-8 |
+------------------+----------+