MORe IDE integration#
To use the MORe scripting API MORe can be integrated into an IDE.
Starting with MORe 5.1, Spyder is no longer installed into the MORe environment by default. In order to continue using Spyder, Spyder standalone has to be installed.
Download the installer from https://www.spyder-ide.org and follow the instructions of the installer.
Start Spyder from the Start Menu
Go to Tools → Preferences → Python interpreter
Select “Use the following python interpreter”, navigate to the MORe environment and select python.exe (usually %localappdata%/Continuum/Miniconda3/envs/more/python.exe)
Restart the console by clicking the cross next to “Console 1/A”
Open startup script from MORe installation directory (usually %localappdata%/MORe/python/MORe.ipy). Make sure to allow the opening of .ipy files in the file dialog.
Run the startup script.
Download PyCharm Community from https://www.jetbrains.com/pycharm/download/ and follow the instructions of the installer.
Start PyCharm from the Start Menu
Select “open project”
In the dialog select the python folder in the MORe installation directory (usually %localappdata%/MORe/python)
Open Settings → Project: python → Python Interpreter. Then select “Add interpreter”
Chose “Conda environment” and make sure the path to the conda executable is set (usually %localappdata%/Continuum/Miniconda3/condabin/conda.bat). Then press “Load Environments”
Select “Use existing environment” and select “more” from the dropdown.
From the run configuration drop down select “Edit Configurations”. Then add a new python configuration. Modify the following parameters:
Script path: select MORe.py from more installation directory/python (usually %localappdata%/MORe/python/MORe.py)
Python interpreter: Make sure the more environment is selected.
Run with Python Console: tick