You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IPython display indentation of HTML causes problems when converting to markdown #9301
When I embed an iframe in a notebook using the IFrame class the resulting cell is indented, because of the indentation in the source file. When I convert the notebook to markdown with nbconvert and then convert it back to HTML, the iframe tag is interpreted as a code block, because of the indentation. Using the Audio display would have a similar result because of the indentation in _repr_html_() I assume.
Possible solutions would be to put the format strings on one long line in the display.py source or remove the indentation. Not sure whether this is the right project to report this, or whether it is something that should be handled in the nbconvert project.
Activity