-
Notifications
You must be signed in to change notification settings - Fork 217
JuliaCustom
Harald Schilly edited this page May 23, 2017
·
8 revisions
The following are steps how to setup a custom installation of Julia on Cocalc
- Get a 64 bit linux tarball: https://julialang.org/downloads/
- Extract it, and symlink from your
~/bin/julia
to it'sbin/julia
- Make sure
~/bin
is in yourPATH
, e.g. by appendingexport PATH=$HOME/bin:$HOME/.local/bin:$PATH
to your~/.bashrc
file. - Tell Julia to use a package directory inside your project, add this line to your
~/.bashrc
:export JULIA_PKGDIR=$HOME/.julia
- Restart the terminal and test you got the correct julia:
~$ which julia /projects/<your-project-uuid>/bin/julia ~$ julia --version julia version 0.5.2 ~$ echo $JULIA_PKGDIR /projects/<your-project-uuid>/.julia
- For running Julia in the Jupyter Notebook, you also need to install IJulia and your own jupyter kernel:
Then add this file into
$ julia > Pkg.init() > Pkg.add("IJulia")
~/.local/share/jupyter/kernels/julia-my/kernel.json
:
{
"display_name": "Julia (local)",
"argv": [
"/projects/<YOUR-PROJECT-UUID>/bin/julia",
"-i",
"--startup-file=yes",
"/projects/<YOUR-PROJECT-UUID>/.julia/v0.5/IJulia/src/kernel.jl",
"{connection_file}"
],
"language": "julia"
}
This Wiki is for CoCalc.com.
A more structured documentation is the CoCalc User Manual.
For further questions, please contact us.