CommunityData:Julia: Difference between revisions
mNo edit summary |
m (→Pluto.jl) |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
Julia comes with its own package manager called Pkg. You can invoke it by typing <code>]</code> inside the Julia REPL. | Julia comes with its own package manager called Pkg. You can invoke it by typing <code>]</code> inside the Julia REPL. | ||
Then run <code>add Package</code> to install. | Then run <code>add Package</code> to install. | ||
== Pluto.jl == | |||
Pluto is a computational notebook environment for Julia. | |||
Here is how to run it on Kibo. First choose a PORT you are going to use and log into Kibo: | |||
<pre> | |||
ssh -L localhost:PORT:localhost:PORT kibo | |||
</pre> | |||
Start Julia and run | |||
<pre> | |||
using Pluto | |||
Pluto.run(;host="0.0.0.0", port=PORT) | |||
</pre> |
Latest revision as of 22:43, 15 May 2022
Julia is a programming language for scientific programming that some of us (mostly Carl and Nick) have found useful.
Installing Julia[edit]
You can install Julia without needing root permissions on both Kibo and Hyak. The relevant files and checksums are at julialang.org. Download and unzip the tar file using:
wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz tar zxvf julia-1.5.3-linux-x86_64.tar.gz
Then add julia to your path. Further (and probably more up-to-date) instructions for setting up Julia on Linux are here: https://julialang.org/downloads/platform/#linux_and_freebsd
Installing Packages[edit]
Julia comes with its own package manager called Pkg. You can invoke it by typing ]
inside the Julia REPL.
Then run add Package
to install.
Pluto.jl[edit]
Pluto is a computational notebook environment for Julia.
Here is how to run it on Kibo. First choose a PORT you are going to use and log into Kibo:
ssh -L localhost:PORT:localhost:PORT kibo
Start Julia and run
using Pluto Pluto.run(;host="0.0.0.0", port=PORT)