Table of Contents
Important Note: To learn how to schedule a Jupyter notebook or Jupyter Lab session via our interactive computing portal please follow these instructions. If you prefer you can schedule sessions from the command line as described here.
Setup the necessary Julia packages:
Note: The Julia package setup could take more than 30+ mins and we are in process of improving it.
We recommend doing the setup in an interactive session.
Open the interactive session on a compute node:
Use srun to open an interactive session.
holylogin01>$ srun --pty -p shared --mem 4000 -t 300 /bin/bash holy7c05314>$
Setup the IJulia package:
Once on the node, you should load the module for Julia and for Python (Anaconda) and install the Julia kernel in your user folder.
Please refer to
module-query julia or the portal for information on the different versions of Julia and select the version you would like to use.
holy7c05314>$ module load Anaconda3/5.0.1-fasrc01 holy7c05314>$ module load julia/0.6.3-fasrc01
Now that you have Julia loaded in your environment, you need to install
IJulia package, which binds the Julia kernel for Jupyter.
holy7c05314>$ julia julia> Pkg.add("IJulia") .... some output ... INFO: Building IJulia INFO: Found Jupyter version 4.4.0: jupyter INFO: Installing Julia kernelspec julia-0.6 [InstallKernelSpec] Installed kernelspec julia-0.6 in /n/yourhomefolder/.local/share/jupyter/kernels/julia-0.6 INFO: Package database updated julia> exit()
Note: This can take several minutes.
Use the notebook:
Finally, you have all the components you need. You can now start Jupyter, connect to it and open a Julia notebook.
To learn how to schedule a Jupyter notebook or Jupyter Lab session via our interactive computing portal follow these instructions. If you prefer you can schedule sessions from the command line as described here.
Once the Jupyter notebook Home page loads in your browser, you can start a notebook with a Julia kernel by selecting that entry from the list of available kernels. Your Julia notebook will open in a new tab.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Attribution.