home.social

#webvpython — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #webvpython, aggregated by home.social.

  1. There isn't a built in histogram in #WebVPython - here's how to make one yourself (bonus, normal distribution function included). #python

    youtu.be/6N_4KVEvrN8

  2. In case you have not already heard, Bruce Sherwood is stepping down as lead developer for VPython and Web VPython. Steve Spickelmire will now fill that role.

  3. New #python video - modeling the motion of a wolf chasing a hare with #webVpython

    (code included)
    youtu.be/fJaTv_BNSwA

  4. #WebVPython doesn't have a built in way to find the best fit line - so I built a least squares function. #python

    youtu.be/ZiQuhTAWw4E

  5. One of the best things about #python and #WebVPython is the ability to create visualizations. Here is how to show the shape of the magnetic field around a wire.

    #physics

    youtu.be/OBU-gn0dy1E

  6. From Bruce Sherwood:

    “Ruth Chabay has updated the VPython documentation for the new group option. In the Help, use the search option to find "group", or go directly to

    glowscript.org/docs/VPythonDoc

    The new group feature is not yet available in the vpython module used with installed Python.”

  7. Because this is brand new, the documentation is not yet in the Help, but here are two sample programs whose code you can examine to get the main ideas:

    glowscript.org/#/user/Bruce_Sh

    glowscript.org/#/user/Bruce_Sh

  8. From Bruce Sherwood:

    “Thanks to major help from Steve Spicklemire, plus useful comments by Ruth Chabay, there is a new feature in Web VPython (not yet available in the vpython module for installed Python). You can now create a "group" and place objects in that group. You can then move all the grouped objects together, with a single statement. In addition to moving the group, you can rotate the group, make all the objects invisible or visible, or change the colors of the objects.”

  9. From Bruce Sherwood just now:

    “Many thanks to Ruth Chabay for creating much better, searchable VPython documentation!

    (It is possible that you might need to clear the browser cache to get the Help.)”

  10. In Web VPython, the helix object has a new feature. You can set the property ccw = True to get counterclockwise coils. Setting cow = False gives clockwise coils.

  11. New #physics #python video - sometimes it's easier to use physics to create a nice visualization of the electric field. Here's how to do that with #WebVpython (code included)

    youtu.be/CQpArh63sq4

  12. New #physics #python video - going over the important parts of python lists for numerical calculations. Note: this is for #WebVPython - not using numpy arrays.
    youtu.be/qlJbfvLOU00

  13. Do you get a syntax error when you execute the following code in Chrome on Windows? Or do you get something like "run.js:76 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('sandbox.glowscript.org') does not match the recipient window's origin ('glowscript.org')."

    Web VPython 3.2
    a = 3m
    print(a)

  14. This account will serve users of VPython for Jupyter Notebook and WebVPython (aka GlowScript). It is maintained by Joe Heafner (@heafnerj). It was created with the permission of VPython's creators and developers Bruce Sherwood and Ruth Chabay.

  15. Welcome to the new home for VPython and WebVPython! Please be patient as I get things organized.