---
title: "Julia Programming Language"
id: "18174"
type: "epkb_post_type_1"
slug: "julia"
published_at: "2018-05-31T15:47:00+00:00"
modified_at: "2025-07-30T18:10:56+00:00"
url: "https://docs.rc.fas.harvard.edu/kb/julia/"
markdown_url: "https://docs.rc.fas.harvard.edu/kb/julia.md"
excerpt: "Description Julia is a high-level, high-performance dynamic programming language for technical computing. It has syntax that is familiar to users of many other technical computing environments. Designed at MIT to tackle large-scale partial-differential equation simulations and distributed linear algebra, Julia..."
taxonomy_epkb_post_type_1_category:
  - "Languages"
---

# Julia Programming Language

## Description

[Julia](https://en.wikipedia.org/wiki/Julia_(programming_language))
 is a high-level, high-performance dynamic programming language for technical computing. It has syntax that is familiar to users of many other technical computing environments. Designed at MIT to tackle large-scale partial-differential equation simulations and distributed linear algebra, Julia features a robust ecosystem of tools for [optimization](https://jump.dev/)
, [statistics](https://juliastats.org/)
, [parallel computing](https://docs.julialang.org/en/v1/manual/parallel-computing/)
, and [data visualization](https://docs.juliaplots.org/stable/)
. Julia is actively developed by teams at [MIT](https://julia.mit.edu/)
 and in [industry](https://juliahub.com/)
, along with hundreds of domain-expert scientists and programmers from around the world on [JuliaLang](https://github.com/JuliaLang/julia/graphs/contributors)
.

## Installation

Julia can be easily installed by following the instructions on [https://julialang.org/downloads/](https://julialang.org/downloads/)
 for a Unix-type system or Windows. You can install Julia locally on the cluster using the command for the Unix-type system.

The default location for the installation is `$HOME`. The command will also add `Juliaup` initialization in your `~/.bashrc`, which will add the executable `julia` to your `$PATH` and make it available for you to use using command line interface (CLI).

## Adding packages to Julia

One can utilize Julia’s full-featured interactive command-line [REPL](https://docs.julialang.org/en/v1/stdlib/REPL/)
 (read-eval-print loop) to add packages needed for running a Julia program successfully. For example, in order to run a program that solves differential equations numerically in Julia one would need to install `DifferentialEquations`, `SimpleDiffEq`, and `Plots` packages prior to running the differential equations program. This can be achieved in the following manner:

```
julia> using Pkg
julia> Pkg.add("DifferentialEquations")
julia> Pkg.add("SimpleDiffEq")
julia> Pkg.add("Plots")
```

### Python/Conda in Julia

Similarly, one can install [Conda.jl](https://github.com/JuliaPy/Conda.jl?tab=readme-ov-file)
 and [PyCall.jl](https://github.com/JuliaPy/PyCall.jl?tab=readme-ov-file)
 packages to enable `conda` for installing `Python` packages in `Julia` and to directly call `Python` functions from `Julia`. For example, in order to install `Conda`, `matplotlib` (using `conda`), and `PyCall`, one can do the following:

```
julia> Pkg.add("Conda")
julia> using Conda
julia> Conda.add("matplotlib")
julia> ENV["PYTHON"]=""
julia> Pkg.add("PyCall")
julia> Pkg.build("PyCall")
```

**Note:** The `PYTHON` environmental variable above has been set to `blank` prior to building the `PyCall` package. This is to override the default behavior of `PyCall`, which is to use the system’s default Python environment in Linux, and instead install Julia’s “private” version of Python. You can find more details on how to install `PyCall` at a desired location and call Python functions from a Julia program on [PyCall.jl](https://github.com/JuliaPy/PyCall.jl?tab=readme-ov-file)
 and [Python from Julia](https://stackoverflow.com/questions/66648841/how-to-call-a-python-function-from-a-julia-program)
.

### Jupyter notebook in Julia

A Julia kernel can be set up to interact with the Julia language using Jupyter’s [graphical notebook](https://jupyter.readthedocs.io/en/latest/)
. The [IJulia](https://github.com/JuliaLang/IJulia.jl)
 package binds the Julia kernel with Jupyter.

In order to install a package, you can bring the Julia package [prompt](https://docs.julialang.org/en/v1/stdlib/Pkg/)
 `pkg>` by typing `]` instead of `using Pkg`. Hence, the `IJulia` package can be installed as:

`julia> ]``(@v1.10) pkg> add IJulia (@v1.10) pkg> build IJulia`

To come out of the `pkg>` mode and get back to Julia REPL, press `CTRL+C` or backspace (see [Pkg](https://docs.julialang.org/en/v1/stdlib/Pkg/)
).

Alternatively, you can execute the `using Pkg` command to install `IJulia` as follows:

`julia> using Pkg julia> Pkg.add("IJulia") julia> Pkg.build("IJulia")`

**Note:** The installation of Julia packages could take significant time. Therefore, we recommend that Julia packages are installed on a compute node via an interactive session.

## Examples

To get started with Julia on the Harvard University FAS cluster you can try the examples shown on our [User Codes](https://github.com/fasrc/User_Codes/tree/master/Languages/Julia)
 repository.

## Remove Julia Installation

Julia can be uninstalled by executing: `juliaup self uninstall`

Additionally, make sure to check `~/.julia` and `~/.juliaup` and delete them if they are not deleted after executing the above command.

## Resources

[The Julia Programming Language](https://julialang.org/)
  
 [Julia Computing](https://juliahub.com/)
  
 [Julia Documentation](https://docs.julialang.org/en/v1/)
  
 [Conda.jl](https://github.com/JuliaPy/Conda.jl?tab=readme-ov-file)
  
 [PyCall.jl](https://github.com/JuliaPy/PyCall.jl?tab=readme-ov-file)

Bookmarkable Links

- [1. Description](#Description)
- [2. Installation](#Installation)
- [3. Adding packages to Julia](#Adding_packages_to_Julia)
  - [3.1. Python/Conda in Julia](#PythonConda_in_Julia)
  - [3.2. Jupyter notebook in Julia](#Jupyter_notebook_in_Julia)

- [4. Examples](#Examples)
- [5. Remove Julia Installation](#Remove_Julia_Installation)
- [6. Resources](#Resources)

Last UpdatedJuly 30, 2025
