Spyder IDE Setup for FDS Python Utilities - firemodels/fds GitHub Wiki
Spyder IDE Setup for FDS Python Utilities
Spyder is a popular open-source IDE for Python.
To set it up, first download FDS following:
👉 FDS Compilation Guide
Linux and macOS
One-time setup
- Open a terminal and go to:
cd $FIREMODELS/fds/Utilities/Python
- Run:
source setup_spyder_env.sh
- Add this line to your
~/.bash_profile
(or~/.bashrc
):source $FIREMODELS/fds/fds_python_env/bin/activate
Next time onwards
From any terminal:
spyder
Spyder will launch, ready to edit, run, and visualize Python scripts (similar to MATLAB).
Windows
One-time setup
- Install Python 3.11 or earlier from python.org.
Python 3.12+ has a DLL issue with NumPy < 2.0 — this will be addressed later.
Ensurepython.exe
is in your PATH. - Open Command Prompt and go to:
cd %FIREMODELS%\fds\Utilities\Python
- Run:
call setup_spyder_env.bat
Next time onwards
In Command Prompt:
call %FIREMODELS%\fds\fds_python_env\Scripts\activate
spyder
Spyder will open with the FDS Python environment active.
Troubleshooting
To reset and reinstall (all platforms):
- Delete the environment folder:
(On Windows, deleterm -rf $FIREMODELS/fds/fds_python_env
%FIREMODELS%\fds\fds_python_env
manually.) - Repeat the setup steps above.