ITensor / ITensorsVisualization.jl

A tool for visualizing tensor network contractions.
MIT License
20 stars 2 forks source link

Alternatives for the backend #8

Open GiggleLiu opened 3 years ago

GiggleLiu commented 3 years ago

I downloaded this package and played around with it for a while, but I feel GLMakie might not be the best choice for the backend. It is slow to first plot, and can not embed the image inside a Pluto notebook. There are some alternatives that you might be interested.

Compose.jl

Pros
Cons

Luxor.jl

Pros
Cons

NOTE:

I am currently using Compose for showing networks (https://github.com/GiggleLiu/Viznet.jl). I feel its functionality is good, but the Compose API is not quite user friendly. Maybe Luxor is the best choice. Both do not have a proper latex support, this is the pain point. But I guess it is not too hard to add the MathJax support for Compose so that it can display latex in Pluto notebooks and other web applications.

GiggleLiu commented 3 years ago

Update: I added in the MathJax support to Compose in this PR: https://github.com/GiovineItalia/Compose.jl/pull/418

Once it got merged, on can show latex in Pluto notebooks and other web pages. (not compatible with IE9 and IE10)