rsnt_translations
56,430
edits
No edit summary |
(Marked this version for translation) |
||
Line 189: | Line 189: | ||
== Adding kernels == | == Adding kernels == <!--T:54--> | ||
<!--T:55--> | |||
It is possible to add kernels for other programmming languages or Python versions different than the one running the Jupyter Notebook. Refer to [http://jupyter-client.readthedocs.io/en/latest/kernels.html Making kernels for Jupyter] to learn more. | It is possible to add kernels for other programmming languages or Python versions different than the one running the Jupyter Notebook. Refer to [http://jupyter-client.readthedocs.io/en/latest/kernels.html Making kernels for Jupyter] to learn more. | ||
<!--T:56--> | |||
The installation of a new kernel is done in two steps. | The installation of a new kernel is done in two steps. | ||
#Installation of the packages that will allow the language interpreter to communicate with Jupyter Notebook. | #Installation of the packages that will allow the language interpreter to communicate with Jupyter Notebook. | ||
#Creation of a file that will indicate to Jupyter Notebook how to initiate a communication channel with the language interpreter. This file is called a ''kernel spec file''. | #Creation of a file that will indicate to Jupyter Notebook how to initiate a communication channel with the language interpreter. This file is called a ''kernel spec file''. | ||
<!--T:57--> | |||
Each kernel spec file has to be created in its own subfolder inside a folder in your home directory with the following path <code> ~/.local/share/jupyter/kernels</code>. Jupyter Notebook does not create this folder, so the first step in all cases is to create it. You can use the following command. | Each kernel spec file has to be created in its own subfolder inside a folder in your home directory with the following path <code> ~/.local/share/jupyter/kernels</code>. Jupyter Notebook does not create this folder, so the first step in all cases is to create it. You can use the following command. | ||
{{Command|mkdir -p ~/.local/share/jupyter/kernels}} | {{Command|mkdir -p ~/.local/share/jupyter/kernels}} | ||
<!--T:58--> | |||
In the following sections, we provide a few examples of the kernel installation procedure. | In the following sections, we provide a few examples of the kernel installation procedure. | ||
=== Anaconda === | === Anaconda === <!--T:59--> | ||
<!--T:60--> | |||
'''Before installing an Anaconda kernel''', make sure you have read the documentation and installed [[Anaconda]]. | '''Before installing an Anaconda kernel''', make sure you have read the documentation and installed [[Anaconda]]. | ||
<!--T:61--> | |||
# Load the Anaconda module. {{Command|module load miniconda3}} | # Load the Anaconda module. {{Command|module load miniconda3}} | ||
# '''Optional''': Activate a specific conda virtual environment. {{Command|source activate <your env>}} | # '''Optional''': Activate a specific conda virtual environment. {{Command|source activate <your env>}} | ||
Line 212: | Line 218: | ||
# '''Optional''': Deactivate the virtual environment. {{Command|source deactivate}} | # '''Optional''': Deactivate the virtual environment. {{Command|source deactivate}} | ||
<!--T:62--> | |||
For more information, see the [http://ipython.readthedocs.io/en/stable/install/kernel_install.html ipykernel documentation]. | For more information, see the [http://ipython.readthedocs.io/en/stable/install/kernel_install.html ipykernel documentation]. | ||
=== Julia === | === Julia === <!--T:63--> | ||
<!--T:64--> | |||
# Load the Julia module. {{Command|module load julia}} | # Load the Julia module. {{Command|module load julia}} | ||
# Activate the Jupyter Notebook virtual environment. {{Command|source $HOME/jupyter_py3/bin/activate}} | # Activate the Jupyter Notebook virtual environment. {{Command|source $HOME/jupyter_py3/bin/activate}} | ||
# Install IJulia. {{Command|echo 'Pkg.add("IJulia")' {{!}} julia}} | # Install IJulia. {{Command|echo 'Pkg.add("IJulia")' {{!}} julia}} | ||
<!--T:65--> | |||
For more information, see the [https://github.com/JuliaLang/IJulia.jl IJulia documentation]. | For more information, see the [https://github.com/JuliaLang/IJulia.jl IJulia documentation]. | ||
=== R === | === R === <!--T:66--> | ||
<!--T:67--> | |||
# Load the R module. {{Command|module load r}} | # Load the R module. {{Command|module load r}} | ||
# Activate the Jupyter Notebook virtual environment. {{Command|source $HOME/jupyter_py3/bin/activate}} | # Activate the Jupyter Notebook virtual environment. {{Command|source $HOME/jupyter_py3/bin/activate}} | ||
Line 230: | Line 240: | ||
# Install the R kernel spec file. {{Command|R -e "IRkernel::installspec()"}} | # Install the R kernel spec file. {{Command|R -e "IRkernel::installspec()"}} | ||
<!--T:68--> | |||
For more information, see the [https://irkernel.github.io/docs/ IRKernel documentation]. | For more information, see the [https://irkernel.github.io/docs/ IRKernel documentation]. | ||
== References == | == References == <!--T:69--> | ||
</translate> | </translate> |