How I built a Medical Radiation Visualizer with Python and Flask
hassony

hassony @hassony

About: Master’s graduate in Medical Physics with a strong passion for programming and technology.

Joined:
Oct 23, 2025

How I built a Medical Radiation Visualizer with Python and Flask

Publish Date: Oct 23 '25
1 2

I’ve been studying medical physics for a while, and I wanted to create something that turns theory into something visual and interactive.
So I decided to build a small web app that shows how X-rays, Gamma rays, and Protons interact with matter.

The project is built with Python and Flask, and it uses simplified physical equations like Klein–Nishina and Bethe–Bloch to simulate photon and particle interactions.
meant for educational use.

You can:

Compare materials like water, bone, and lead.

Generate plots for different energies.

Export results to PDF and Excel.

See how energy, density, and atomic number affect attenuation and dose.

It’s a simple open-source project, but I hope it helps students and researchers visualize the physics they study every day.
Any feedback or suggestions are welcome.

GitHub: github.com/hassony/MedicalRadiationVisualizer

Comments 2 total

  • hassony
    hassonyOct 23, 2025

    This project is completely open source and designed for teaching purposes only. I’m planning to add the Electrons and Shielding modules next.

  • roshan sharma
    roshan sharmaOct 23, 2025

    Nice work! Turning medical physics into a visual app is super helpful. Quick question, Is all the physics calculated server-side with Python, or do you use any client-side stuff?

Add comment