Running pysyncrosim in Spyder

If using conda, the spyder IDE is easy to install and straightforward to use.

  1. First, install spyder either in your base environment or in your conda environment using the following code.

# Install spyder
conda install spyder
  1. Open the IDE by typing spyder in the command prompt.

# Open spyder
spyder

Note

you may get a pop-up saying you have a missing dependency, rtree. You can safely ignore this warning.

  1. Within the IDE, change the working directory to the directory containing your pysyncrosim scripts (e.g. spatial_demo.py and input-raster.tif)

alternate text

  1. Open and run your pysyncrosim scripts from the left-hand window. You can run scripts line-by-line in spyder by selecting the line(s) you want to run and pressing F9.