Logo

dev-resources.site

for different kinds of informations.

Setting Up A Julia Development Environment

Published at
4/16/2023
Categories
julialang
vscode
setup
Author
ademoyejohn
Categories
3 categories in total
julialang
open
vscode
open
setup
open
Author
11 person written this
ademoyejohn
open
Setting Up A Julia Development Environment

Introduction

This guide provides a simple walkthrough on how to get Julia running in VS Code. So it is assummed that you have the IDE (Integrated Development Environment) installed. If not you can download VS Code here.

Installation Steps

  1. Download and Install Julia: As recommended on the official Julia website you should be downloading and using the latest stable release of Julia for you machine. After downloading, run the installer and follow the instructions.

  2. Install the Julia Extension: you can find the extension here or you could directly search the term julia in the extension marketplace. It should be the first popping up with "Julia Language Support" as the description. The extension provides language support and other features like syntax highlighting, code completion, and debugging.

Julia Extension Screenshot

  1. Test Your Setup: To make sure your setup is working correctly, open VS Code and create a new file with a .jl extension, main.jl for example. Then write your first line of Julia, such as println("Hello, world!"). Save the file and run it by clicking the "play" button at the top right corner in VS Code.

If you're getting an error message that reads like this:



Cannot read properties of undefined.


Enter fullscreen mode Exit fullscreen mode

It might be that the extension does not find the julia executable. You can fix this by setting the julia.executablePath to point to julia.exe on your machine. You can set the path via the menu File->Preferences->Settings->Extensions and the select julia. Under julia go to Julia: Executable Path and enter the path.

You can find the right path by searching julia.exe, open the file location and copy the path, which should look something like this:



C:\Users\moyoj\AppData\Local\Programs\Julia-1.8.5\bin\julia.exe


Enter fullscreen mode Exit fullscreen mode

And your Julia program should run successfully.


I hope that this article is helpful and you learned something from it. Being a technical writer and content creator I am passionate about sharing my knowledge (including tips and advice) and helping other people achieve their goals, especially those just starting out in tech. You can connect with me on my social media profiles and blogs here.

julialang Article's
30 articles in total
Favicon
Here’s why Julia is THE language in scientific programming
Favicon
Stressify.jl Performance Testing
Favicon
What I learned in Quantum Computing this year (as a Junior Engineer)
Favicon
A Comprehensive Guide to Training a Simple Linear Regression Model in Julia
Favicon
Some Types - Part 2
Favicon
JuliaLang: Performance Prowess or Just Smoke and Mirrors? Unveiling the Real Story
Favicon
Some Types - Part 1
Favicon
Let's Implement Overloading/Multiple-Dispatch
Favicon
5 Lesser-Known Programming Languages That Are Easy to Learn and Highly Effective
Favicon
The programming languages I learned in my Quantum Computing job
Favicon
Transitioning from Lunr.js to Minisearch.js
Favicon
Where It All Starts and Ends
Favicon
Relax, Code, Repeat
Favicon
Julia : “The Harmonious Symphony of Programming”
Favicon
Julia: “The Uncelebrated Maestro of Algorithm Harmony”
Favicon
Weeks 3 and 4 of GSoC Journey: Steps towards Crafting An Enhanced Search Experience
Favicon
Julia: Is It the Final Answer to Programming's Grand Challenges?
Favicon
Two Weeks of Coding
Favicon
Conditionals in Julia
Favicon
Advancing AlgebraicJulia
Favicon
Cracking GSoC for Julia
Favicon
We are inundated with programming languages.
Favicon
Setting Up A Julia Development Environment
Favicon
Julia Plotting Cheat Sheet
Favicon
Manifest.toml vs Project.toml in Julia
Favicon
IJulia: The Julia Notebook
Favicon
Deploying Julia Genie on Heroku
Favicon
Structs in Julia
Favicon
Deep Learning with Julia – How to Build and Train a Model using a Neural Network
Favicon
Machine learning with Julia – How to Build and Deploy a Trained AI Model as a Web Service

Featured ones: