eclipse-theia/theia

`_repr_latex_` doesn't get rendered in ipython notebooks

Offen

#7.898 geöffnet am 26.05.2020

 (0 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)TypeScript (2.478 Forks)batch import
bughelp wantedvscode

Repository-Metriken

Stars
 (18.676 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 15T 4h) (75 gemergte PRs in 30 T)

Beschreibung

I reported this bug to the extension (https://github.com/microsoft/vscode-python/issues/11958) but they confirmed that this behavior does not happen in VSCode. Thus, it must be some issue with Theia.

Steps to cause the bug to occur

  1. Open theia using the python image

docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia-python

  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

Additional Information

  • Jupyter server running: Local
  • Extension version: 2020.1.58038
  • Python and/or Anaconda version: 3.7.0

Contributor Guide