Open SimonHeybrock opened 2 years ago
This was discussed here: https://github.com/hgrecco/pint/issues/765 and https://nbviewer.org/urls/dl.dropbox.com/s/jlgqm6s92kzvagi/pint_html_repr_demo.ipynb
I was under the impression that this was not an issue any more.
Try this in Jupyter (jupyterlab 3.4.6)
This takes very long, and the time scales with the array size. Then I tried:
and this is fast (instant)! So what is going on? I noticed that
Quantity
also defines_repr_latex_
and indeed calling it takes a very long time. Is JupyterLab calling_repr_latex_
even if it is going to display HTML?Edit:
Confirmed that it does:
I could not figure out if this is a Jupyter/IPython feature or bug (no luck finding a related issue yet), but according to https://github.com/ipython/ipython/issues/11202#issuecomment-399698470 it is a feature?