Skip to content

Haaaaron/Mandelbrot-Zoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot set zoom

https://mandelbrotzoom.pythonanywhere.com/

Tool to explore the mandelbrot set. Calculated with fortran and displayed with javascript. Framework is made with python.

Getting started

Most commands will be excecuted in the ./webapp directory of the project

Setting up environment with python virtualenv:

Create python3 environment:

python3 -m venv env

Activate environment:

source env/bin/activate

Install dependencies using requirements.txt:

pip install -r requirements.txt

Creating Fortran to python excecutable:

Navigate to /webapp/mandelbrot directory

Note that you will need a fortran compiler to create the excecutable. (Tested with gfortran https://gcc.gnu.org/wiki/GFortran)

Run makefile:

make

Or the command directly:

f2py -c -m mandelbrot mandelbrot.f90 --f90flags="-fopenmp" -lgomp

Running Flask in production mode:

Export app and run:

export FLASK_APP='app.py'
flask run

Open the given url in your browser (default):

http://127.0.0.1:5000/

Zoom away!

Environment variables:

Environment variables can be set with flask run:

flask run --host=0.0.0.0 --port=80

Testing

All tests can be run in ./tests directory

python3 -m unittest -v

About

Mandelbrot set zoom tool. Calculated with fortran and displayed with javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published