Skip to content

Fix Markdown and JSON __repr__ to return actual data#15229

Closed
asgharale wants to merge 1 commit into
ipython:mainfrom
asgharale:fix-Markdown-rendering-in-output
Closed

Fix Markdown and JSON __repr__ to return actual data#15229
asgharale wants to merge 1 commit into
ipython:mainfrom
asgharale:fix-Markdown-rendering-in-output

Conversation

@asgharale

Copy link
Copy Markdown

Fix Markdown and JSON repr to return actual data

  • Add Markdown.repr returning self.data so nbconvert and terminals
    show actual markdown text instead of <IPython.core.display.Markdown object>
  • Add JSON.repr returning json.dumps(self.data, indent=2) as
    requested in review on PR Add a 'text/plain' repr to Markdown and JSON #14150

Closes #12895

@asgharale asgharale closed this May 30, 2026
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.

Markdown rendering in output

1 participant