Use Sienna in VSCode
Prerequisites
Start by completing the install steps for Julia and Sienna on the basic installation page. Then:
Step 1: Install Visual Studio Code
- Download from VSCode.
- Install following the on-screen instructions.
- Launch VSCode after installation.
Step 2: Configure Julia in VSCode
Open VSCode, go to Extensions (
Ctrl+Shift+X
on Windows,Cmd+Shift+X
on Mac).Search for and install the Julia extension.
Set Julia's path:
- Open Command Palette (
Ctrl+Shift+P
on Windows,Cmd+Shift+P
on Mac). - Search:
Settings
→Julia: Executable Path
. - Provide the full path to your
julia
executable (julia.exe
on Windows,julia
on Mac and Linux).
- Open Command Palette (
Step 3: Start Julia REPL in VSCode
- Open the Command Palette (
Ctrl+Shift+P
). - Type
Julia: Start REPL
and press Enter to launch it.
Test you have access to your Sienna installation:
using PowerSystems
Troubleshooting
- Path Issues: Verify paths in VSCode’s settings.
- Package Issues: Ensure Julia is up-to-date and has internet access.
- Restart Required: If REPL does not load, restart VSCode.