SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
86 stars 19 forks source link

Offline viewers #20

Closed kbarros closed 2 years ago

kbarros commented 2 years ago

Add a new command offline_viewers() to support offline Jupyter notebooks.

kbarros commented 2 years ago

Matt, I put you as a reviewer in case you're curious about the Javascript hacks. This works for Jupyter notebooks, but it might not be possible for VSCode (unless we're willing to spend 0.5MB of RAM for each new viewer).

kbarros commented 2 years ago

Also, we might want to think carefully about checking in the entirety of three.js -- it would seriously dilute our Julia/Javascript ratio. Maybe we can auto-download it at the time of Pkg install?

kbarros commented 2 years ago

I guess it would be good to have input from @ColeMiles and @ddahlbom before landing this. Another possibility I was pondering is to make a separate package that carries just the three.js library, and then depend on that.

kbarros commented 2 years ago

The Julia help desk pointed me here: https://pkgdocs.julialang.org/v1/artifacts/ This looks like the best way. I'll try to figure it out.