Python Starter Guide
đź§° PART 1: Install Required Tools
1.
Install Anaconda (Python with Conda)
- Go to: https://www.anaconda.com/download/
- Download the Windows 64-bit version.
- Run the installer:
- Choose “Just Me”
- (Optional) Check the box: Add Anaconda to my PATH
- Finish the installation.
2.
Install Visual Studio Code (VS Code)
- Go to: https://code.visualstudio.com/
- Download and install using the defaults.
- Check “Add to PATH” and “Register Code as editor” during install.
📦 PART 2: Download SciAnalysis
3.
Download ZIP from GitHub
- Visit: https://github.com/CFN-SoftBio/SciAnalysis
- Click the green “Code” button → Choose “Download ZIP”.
- Save the file to your Desktop.
- Right-click the ZIP file → Extract All.
- Rename the extracted folder to just SciAnalysis.
đź§ PART 3: Setup Environment Using Command Prompt
4.
Open Command Prompt
- Press Windows + R, type cmd, press Enter.
5.
Navigate to Any Folder (example)
cd C:\Users\YourUsername\Desktop\SciAnalysis
To check, type:
dir
You should see files like setup.py.
6.
Create and Activate Conda Environment
conda create -n scianalysis_env python=3.9 -y
Then activate it:
conda activate scianalysis_env
7.
Install Required Packages (That may take long to figure out)
Install SciAnalysis dependencies:
conda install numpy
Or multiple package at once:
conda install scipy matplotlib h5py lxml pillow -y
📝 PART 4: Edit the Script in VS Code
8.
Open VS Code
- Launch VS Code.
- Go to File → Open Folder → Select: runWS.py
9.
Install Python Extension in VS Code
- Click the Extensions icon (left bar).
- Search “Python” and click Install.
10.
Edit the Script
- Open: runWS.py
- You can adjust input/output paths or settings as needed.
▶️ PART 5: Run the Script
Back in Command Prompt:
- Make sure you’re in the right folder:
cd C:\Users\YourUsername\YourDataFolder
conda activate scianalysis_env
- Run the WAXS analysis script:
python runWS.py