Web VPython (@WebVPython) profile picture

Web VPython is an easy-to-use, powerful environment for creating 3D animations and publishing them on the web.

Joined January 2018
Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)Photo by Web VPython (@WebVPython)
I am in the process of migrating this feed to Mastodon. Watch this space for confirmation when that has happened.
1
2
745
We are now at @VPython@fosstodon.org. Pardon the clutter as we get set up.
662
If you experience problems with Web VPython’s editor on your iPad or other Apple device, could you please let me know?
I hope your semester is off to a great start! Let us know how you're using Web VPython by tweeting about your activities, labs, assignments, research, etc. and tagging us! The community needs you! #ITeachPhysics
1
3
Helpful tip: Use print_options(digits=n) to print numerical values with n digits by default. Not currently available in VPython 7.
Thread 🧵
Here is my string of beads (yes, from Mardi Gras) with a flick to make a wave pulse.
Thread 🧵
THREAD. Here are some comments on @veritasium new #physics circuit video. You can (and should) check it out. Very nice. youtu.be/oI_X2cMHNe0
1
Should I make a presence on Mastodon?
From Sherwood: When you click "Share or export this program" you now should see a link to download an HTML file containing your transpiled JavaScript program, which can be loaded into a browser and the program should run.
1
2
2
NEW: When creating a new program, you should now see "Web VPython 3.2" as the header. The underlying library will still be called the "GlowScript library" and the old GlowScript headers will continue to work.
1
NEW: You can now attach a local_light to a moving object. See the docs for attach_light. Here's a demo program: glowscript.org/#/user/Bruce_…
1
Also from Sherwood: "The one thing I didn't test with yesterday's update was to export a program. Alas, that is currently broken, and I don't yet know why." Working the situation.
1
1
“Export does now work again.”
1
From Sherwood: “Merry Christmas! Web VPython now handles the standard Python methods for dictionaries, lists, and sets.”
1
3
NEW: It is now possible to use the download() function to write a file to your Downloads folder. glowscript.org/docs/VPythonD…
1
4
8
You can now access webvpython.org with https:// so you can update your bookmarks!
1
1
At present webvpython.org cannot be accessed with https://, only http://. Sherwood may or may not set that up in the future.
BIG NEWS: Effective immediately, GlowScript will be referred to as Web VPython. This is to avoid confusion with other languages named “GlowScript.” Please make appropriate updates! webvpython.org should now work.
GlowScript has been updated to 3.2 to address a problem with input() not working in Safari 15.0 and potentially not working in future versions of Chrome. A very strange bug. 1/2
1
3
Sherwood: “There is a temporary work-around. If you enable the "Developer" tab in Safari, check "Disable Cross-Origin Restrictions", then input() works properly.” 2/2 (h/t to @pricepd and @sspickle for troubleshooting this.)
3
Does this program work for you in Safari 15.0? GlowScript 3.1 VPython test = input("type something") print ("you typed", test) (h/t to @pricepd for finding this!)
Sherwood has updated the attach_arrow statement. The attached arrow's properties can be changed, and using the statement in a loop doesn't cause a slowdown. (The introductory M&I coding tutorials on @trinketapp use this statement it would be great for GS to be updated there.)
1