JupyterLab: Difference between revisions

Jump to navigation Jump to search
Julia Kernel configuration procedure
(Marked this version for translation)
(Julia Kernel configuration procedure)
Line 195: Line 195:


=== Julia Kernel === <!--T:46-->
=== Julia Kernel === <!--T:46-->
''(Section under construction. Please see the older [[JupyterNotebook#Julia|configuration procedure here]])''
Prerequisites:
# The configuration of a Julia kernel depends on a Python virtual environment that already has all the '''[[JupyterLab#Python_Kernel|Python Kernel]]''' dependencies. If you do not have such virtual environment, make sure to follow instructions listed in the next section.
# Since the installation of Julia packages requires an access to Internet, the configuration of a Julia kernel must be done in a '''[[SSH|remote shell session on a login node]]'''. For example, from a local terminal or any SSH client: {{Command2|prompt=[my_computer ~] $|ssh username@cluster_address}}
Once you have a Python virtual environment available, you may configure the Julia kernel:
 
<ol>
<li>Activate the Python virtual environment. {{Command2|source $HOME/jupyter_py3.8/bin/activate}}
<li>Load the [[Julia]] module. {{Command2|prompt=(jupyter_py3.8) [name@server ~]$|module load julia}}
<li>Install IJulia. {{Command2|prompt=(jupyter_py3.8) [name@server ~]$|echo -e 'using Pkg\nPkg.add("IJulia")' {{!}} julia}}
<li>Deactivate the virtual environment and close the remote session: {{Command2|prompt=(jupyter_py3.8) [name@server ~]$|deactivate && exit}}
<li>Start or restart a new JupyterLab session.
</ol>
 
For more information, see the [https://github.com/JuliaLang/IJulia.jl IJulia documentation].


=== Python Kernel === <!--T:47-->
=== Python Kernel === <!--T:47-->
cc_staff
782

edits

Navigation menu