This app visualizes 1D special relativity (relativistic motion) in any chosen reference frame.
1D-Special-Relativity-Visualizer-Demo.mov
Clone the repository:
git clone https://github.com/Deep0Thinking/1D-Special-Relativity-Visualizer.git
Navigate to the project directory:
# Create and activate a virtual environment (on macOS/Linux):
python3 -m venv virtualenv
source virtualenv/bin/activate # On Windows: `virtualenv\Scripts\activate`
# Install dependencies
pip install -r requirements.txt
# Run the app
python 1D_special_relativity_visualizer.py
Once it starts, you’ll see output like:
Dash is running on http://127.0.0.1:8050/
* Serving Flask app '1D_special_relativity_visualizer'
* Debug mode: on
Open the link (e.g., http://127.0.0.1:8050/
) in your web browser to view the app.
Deactivate the virtual environment when done:
deactivate