Skip to content

Unable to use IPython.display - '_io.StringIO' object has no attribute 'softspace' #8

@mjbright

Description

@mjbright

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    |
+------------------+----------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions