How to install Julia in Anaconda environment

Overview

Julia is a popular programming language. It’s easy to use, delivers fast performance, and is easy to integrate on multiple platforms.

We use the Anaconda platform to simplify the management of data science resources. It assembles all the essential tools we need, from data visualization tools, developer tools such as Visual Studio Code(VSCode) and Spyder to Jupyter Notebooks, and statistical programming tools such as Rstudio. It supports many programming languages such as Python, R, and most recently, Julia, to name a few.

Below are the steps you need to install and use Julia in the Anaconda environment.

Step 1. Install Julia

To start, visit the, official Julia website and download Julia for your PC/laptop, depending on your system specifications. It’s advisable to download the current released stable version of Julia instead of the upcoming version (beta version) that is in development.

Step 2. Install Anaconda

Installing Anaconda is easy and relatively straightforward. If this is your first time encountering this platform, here’s the official Anaconda website link to install in Windows, macOS, or Linux. Follow the instructions on the documentation, and you will have it on your PC/laptop in no time.

Step 3. Using Julia on Anaconda

You now have Julia and Anaconda installed. The next step is to add Julia to the Anaconda environment, specifically Jupyter Notebooks. Open your Julia terminal and type in :

Using Pkg

and then press enter.

Then type in:

Pkg.add("IJulia")

You should see an image similar to the one shown below.

Note: We already had Julia on Anaconda. The updated registry is below.

Always use double quotes " " in IJulia.

Image while installing.
Image while installing.

Step 4. Start using Julia on Jupyter Notebook

Launch your Jupyter notebook on Anaconda. You will notice you have two language options to choose from, so you must choose Julia.

Image by author showing Jupyter notebook  language options
Image by author showing Jupyter notebook language options

Final note

Anaconda comes with VSCode (Visual Studio Code), which is a code editor platform designed by the developer. You can learn more about VSCode through this article here. The VSCode editor has Julia as one of the languages you can freely code/experiment in. Happy coding!