Skip to content

Latest commit

 

History

History
executable file
·
57 lines (43 loc) · 2.14 KB

Notebook.md

File metadata and controls

executable file
·
57 lines (43 loc) · 2.14 KB

Julia with Jupyter notebook on the cluster

This example illustrates the use of Julia kernel with Jupyter notebook on the cluster.

Contents:

  • Montepi-Julia.ipynb: Notebook with Julia source code

Install the IJulia package:

  • Launch an interactive session and load the Python module:
[jharvard@holylogin01 ~]$ salloc -pty -p test --mem=4G -t 120
salloc: Pending job allocation 31172193
salloc: job 31172193 queued and waiting for resources
salloc: job 31172193 has been allocated resources
salloc: Granted job allocation 31172193
salloc: Waiting for resource configuration
salloc: Nodes holy7c26601 are ready for job

[jharvard@holy7c26601 ~]$ module load python/3.12.5-fasrc01

See our documentation on modules to learn more about how to use them on the cluster.

Using the Julia kernel in Jupyter:

To learn how to schedule a Jupyter notebook or Jupyter Lab session via our interactive computing portal (VDI) follow these instructions.

From the the Interactive Apps dropdown menu in the VDI portal select the Jupyter notebook / Jupyterlab app. Choose the parameters of your Jupyter job and launch the interactive session. Once the Jupyterlab interface opens, the available kernels will be displayed.

Julia VDI kernels

NOTE: The available Notebook kernels may differ in your environment depending on the actual conda environments and Julia versions installed in your user space. When you select the desired Julia kernel, the Julia notebook will open in a new tab in your browser.

Julia VDI

References: