MORe IDE integration¶
To use the MORe scripting API MORe can be integrated into an IDE.
Spyder¶
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.
Installation¶
Download the installer from https://www.spyder-ide.org and follow the instructions of the installer.
Integrate MORe¶
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.
PyCharm¶
Installation¶
Download PyCharm Community from https://www.jetbrains.com/pycharm/download/ and follow the instructions of the installer.
Integrate MORe¶
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 navigate to the python.exe in the MORe environment (usually %localappdata%/Continuum/Miniconda3/envs/more/python.exe)
From the run configuration drop down select “Edit Configurations”. Then add a new python configuration. Modify the following parameters:
Name: MORe
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