Web VPython

Glowscript è un ambiente di sviluppo che realizza immagini 2D e 3D direttamente nella pagina web!

Dal sito ufficiale: VPython is an easy-to-use, powerful environment for creating 3D animations. Here at glowscript.org (or webvpython.org, which takes you here), you can write and run VPython programs right in your browser, store them in the cloud for free, and easily share them with others.

Funziona tramite un traduttore da VPython a Javascript realizzato con RapydScript.
Le prestazioni 3D aumentano notevolmente rispetto all’esecuzione come modulo Python.


Funzioni aggiuntive

Web VPython offre funzionalità aggiuntive inaspettate

  • funzioni matematiche
  • funzioni per date e tempo
  • visualizzazione di testi
  • visualizzazione di formule matematiche con la sintassi LaTeX
  • importa le librerie jQuery e jQuery-ui, …
  1. Attributo: winput(prompt="...")
  2. Output di testo
    • print(), print_options()
    • alert, console.log()

Limitazioni

Non si tratta di una vera piattaforma Python, non esiste l’importazione dei moduli nativi e di terze parti.

Inoltre

  1. Non sono disponibili: convexfacesframetext.