Skip to content

Jupyter notebooks for learning Visual Python (vpython). VPython is a python library which allows you to create 3D simulations and interactive visualisation.

Notifications You must be signed in to change notification settings

CodingMango/Learn-VPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Learn Visual Python (VPython) with Jupyter Notebooks 🚀

Welcome to this curated collection of Jupyter Notebooks designed to help you learn and explore VPython in a step-by-step, beginner-friendly manner.

✍️ Some notebooks are created from scratch, while others are inspired by or adapted from online sources like YouTube tutorials and blogs. All are commented thoroughly to help you understand VPython easily.


🎯 What is VPython?

VPython (Visual Python) allows you to create 3D animations and simulations easily using Python. It's perfect for physics visualizations, simulations, and interactive environments.

Image


🧠 Prerequisites

Before diving into VPython, you should have:

  • ✅ Basic knowledge of Python programming
  • ✅ Curiosity and enthusiasm to build visual simulations!

📄 Notebook List

👆Click to close Notebook List
  1. 001-intro-to-basics.ipynb - You will learn the basics of vpython
  2. 002-basic-animations.ipynb - How to animate things (objects)
  3. 003-bouncing-ball.ipynb - Bouncing ball 3D animation (very simple logic)
  4. 004-animating-by-changing-dimensions.ipynb - Another way of animating the objects
  5. 005-thermometer-3d.ipynb - Thermometer 3D animation
  6. 006-non-blocking-dual-animation.ipynb - Animating objects at the same time (without using threading)
  7. 007-mixing-colours.ipynb - To get and unleash the new colors
  8. 008-colour-varying-orb.ipynb - Understanding the RGB
  9. 009-orientation-axis.ipynb - Know the difference between oreintation and axis
  10. 010-analog-clock.ipynb - Analog clock 3D animation
  11. 011-accurate-analog-clock.ipynb - Accurate analog clock using Time Module
  12. 012-labels-and-text.ipynb - Labels and texts
  13. 013-widgets.ipynb - Widgets to vary the parameters instantly during the animation
  14. 014-thousand-cubes.py - A mind exercise to understand the colors and object positioning

and many more to come...


📘 How This Repo Helps You

Each notebook:

  • ✅ Covers a specific VPython concept
  • ✅ Has step-by-step comments to guide you like a tutor 👨‍🏫
  • ✅ Is written in simple, beginner-friendly language
Image

🧪 You’ll be building things like:

  • 🧊 3D shapes (spheres, boxes, cones, etc.)
  • ⚙️ Simple physical simulations (projectiles, orbits)
  • 🧲 Real-world visualisations (magnetism, springs, collisions)

Image


✅ Requirements

To run these VPython notebooks, make sure you have the following installed:

🔧 Software

  • Python (version 3.7 or higher)
  • Jupyter Notebook or JupyterLab

You can install Jupyter using pip:

pip install notebook

💡 Note Before Using pip:
If you're using Python for the first time:

✅ Make sure pip is installed. It usually comes with Python 3.4+, but in case it's missing:
👉 Official pip installation guide

🛠️ Also ensure that Python and pip are added to your system's PATH so they can be used from the terminal or command prompt:

  • On Windows:
    When installing Python, make sure to check ✅ the box that says
    "Add Python to PATH" during setup.

  • On macOS/Linux:
    Python and pip are usually in PATH by default, but if needed, you can manually add them by editing .bashrc, .zshrc, or .bash_profile.

🔍 To test if pip is correctly installed and in your PATH, run:

pip --version

If you see a version number, you’re good to go! ✅

📦 Python Libraries vpython – for 3D simulations

pip install vpython

⚙️ Optional but Useful Tools

💡 While not strictly required, these tools can enhance your VPython learning experience! You only need one of these options below. Choose whichever suits you best!

  • 🐍 Anaconda Distribution
    Combines Python, Jupyter, and many scientific libraries into a single, easy-to-install package.
    👉 Download Anaconda

  • 💻 Visual Studio Code (VS Code)
    A powerful, lightweight code editor with support for Jupyter notebooks through extensions.
    👉 Download VS Code


🔍 Know More About VPython

  • 🧠 Wikipedia Overview:
    Learn the history, applications, and evolution of VPython.
    🔗 https://en.wikipedia.org/wiki/VPython

  • 📘 Official VPython Documentation:
    This is the most detailed and structured guide to every VPython function, class, and concept.
    🔗 https://www.glowscript.org/docs/VPythonDocs/index.html

  • 🎥 Search YouTube for VPython Tutorials:
    Visual learners can find dozens of tutorials demonstrating simulations like orbits, bouncing balls, pendulums, etc.
    Try searching: vpython tutorial for beginners

Image


🤝 Let's Connect

I'm always open to collaboration, feedback, or simply a friendly tech chat!
Feel free to reach out through any of the platforms below:

LinkedIn GitHub Email


🌟 Like this project? Don't forget to ⭐ star the repo!


About

Jupyter notebooks for learning Visual Python (vpython). VPython is a python library which allows you to create 3D simulations and interactive visualisation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published