Difference between revisions of "Julia 2016"

From HPC users
Jump to navigationJump to search
Line 22: Line 22:
You can start the package manager ''Pkg'' by starting Julia and typing the closed square bracket: ''']''' <br/>
You can start the package manager ''Pkg'' by starting Julia and typing the closed square bracket: ''']''' <br/>


<span style="color:#99FF44">julia> </span> ]
<span style="color:#99CCFF">(v1.0) pkg> </span>
The Terminal will change color and will switch from <span style="color:#99FF44">julia> </span> to <span style="color:#99CCFF">(v1.0) pkg> </span>
Now every command you type in controlls Pkg.
You can add a package by using the ''add'' command:
add example example2          # you can add multiple packages at once
The same applies to removing packages with the ''rm'' command and updating packages with ''update'':
rm example
update example2


== Adding and using GR ==
== Adding and using GR ==
 
For Julia, you can install GR, a universal framework for cross-platform visualization applications.


== Documentation ==
== Documentation ==

Revision as of 13:51, 22 February 2019

Introduction

Julia is a high-level general-purpose dynamic programming language. Julia uses multiple dispatch as a paradigm, making it easy to express many object-oriented and functional programming patterns. The standard library provides asynchronous I/O, process control, logging, profiling, a package manager, and more.

Installed version

The currently installed version is 1.0.1 on the environment hpc-env/6.4.

Using Julia

If you want to find out more about Julia on the HPC Cluster, you can use the command

module spider Julia

This will show you basic informations e.g. a short description and the currently installed version.

To load the desired version, you must load the module as well as the environment:

module load hpc-env/6.4
module load Julia

Adding packages

Julia has a built in package manager.
You can start the package manager Pkg by starting Julia and typing the closed square bracket: ]

julia>  ]
(v1.0) pkg> 

The Terminal will change color and will switch from julia> to (v1.0) pkg>

Now every command you type in controlls Pkg. You can add a package by using the add command:

add example example2          # you can add multiple packages at once

The same applies to removing packages with the rm command and updating packages with update:

rm example
update example2

Adding and using GR

For Julia, you can install GR, a universal framework for cross-platform visualization applications.

Documentation

The full documentation about the programming language Lisa can be found here.

Further information are also available on the homepage