A very short question (hoping it is not a stupid one).
How to make
online=True
the default for plot3d and related commands?
Background:
- SageMath on Windows through WSL (using Conda or an AppImage).
- Windows browser (because Ubuntu browser seems to be too slow).
- plot3d gives a blank page.
This seems due to the temporary HTML file created by plot3d containing
<script src="/var/tmp/sage-10.7/local/share/threejs-sage/r122/three.min.js"></script>
which is not accessible from the Windows browser (even after changing the path).
Possible workarounds are:
- Copy three.min.js to the temporary directory of the HTML file and modify the line above:
<script src="three.min.js"></script>
but this file is 656 KB, so multiple invocations of plot3d will take a lot of space. - Copy three.min.js to a directory accessible from the Windows browser. I do not know if this is possible.
- Use plot3d( … , online=True) which changes the line above to
<script src="https://cdn.jsdelivr.net/gh/sagemath/threejs-sage@r122/build/three.min.js"></script>
but this needs internet access.
TIA for your help.
Guillermo