Skip to content

_repr_latex_ doesn't get rendered #1039

@peey

Description

@peey

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Start a python interactive session and enter this:
class A():
	def _repr_latex_(self):
		return "$\psi$"
  1. In next cell, run A() to create an object of this class and have it be printed

Actual behavior

Latex is not rendered
image

Expected behavior

Latex should be rendered, like it is in markdown mode
image

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2020.1.58038
  • VS Code version: (using Theia code editor which uses VSCode extensions)
  • Setting python.jediEnabled: ?
  • Python and/or Anaconda version: 3.7.0
  • OS: Linux (Debian Buster)
  • Virtual environment: None

Developer Tools Console Output

No output when I do "clear console" and then run the cell with A()

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    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