How to Set up SpineOpt.jl

Installing Julia and SpineOpt.jl from Toolbox

  1. Start Spine Toolbox

  2. Select File -> Settings from the main menu and open the Tools page.

  3. Click the Install Julia button. After clicking the button, Julia Installer wizard appears which guides you through the installation. Click the Next, Install Julia and Finish buttons to proceed through the installation steps. After the wizard finishes, your Julia settings should look similar to this:

    _images/settings_tools_default.png
  4. Next, you need to install SpineOpt.jl Julia package. You can do this by clicking the Add/Update SpineOpt button. After clicking the button, SpineOpt Installer wizard appears. Click Next twice and finally Install SpineOpt. Wait until the process has finished and you are greeted with this screen.

    _images/spineopt_install_wizard_successful.png

    Close the wizard.

  5. Click Ok to close the Settings window

Installing the SpineOpt plugin

Note

The SpineOpt Plugin is not a requirement to run SpineOpt.jl, it is provided for convenience and as an example to get you started quickly.

  1. Create a new project (File -> New project…)

  2. Back in the main window, select Plugins -> Install plugin… from the menu

  3. Select SpineOpt and click Ok. After a short while, a red SpineOpt Plugin Toolbar will appear in the main window.

Spine Toolbox and Julia are now correctly set up for running SpineOpt.jl. Next step is to verify the installation (takes you to SpineOpt documentation). See also Tutorials in SpineOpt documentation for more advanced use cases.

For more information on how to select a specific Python or Julia version, see Setting up Consoles and External Tools.