rsnt_translations
56,430
edits
(Possible error messages) |
(Marked this version for translation) |
||
Line 72: | Line 72: | ||
Note: JupyterHub could have also been configured to force a specific user interface. This is usually done for special events. | Note: JupyterHub could have also been configured to force a specific user interface. This is usually done for special events. | ||
= JupyterLab = | = JupyterLab = <!--T:19--> | ||
<!--T:20--> | |||
JupyterLab is now the recommended general-purpose user interface to use on a JupyterHub. | JupyterLab is now the recommended general-purpose user interface to use on a JupyterHub. | ||
From a JupyterLab server, you can manage your remote files and folders, | From a JupyterLab server, you can manage your remote files and folders, | ||
and you can launch Jupyter applications like a terminal, (Python 3) notebooks, RStudio and a Linux desktop. | and you can launch Jupyter applications like a terminal, (Python 3) notebooks, RStudio and a Linux desktop. | ||
== The JupyterLab Interface == | == The JupyterLab Interface == <!--T:21--> | ||
<!--T:22--> | |||
When JupyterLab is ready to be used, the interface has multiple panels. | When JupyterLab is ready to be used, the interface has multiple panels. | ||
[[File:JupyterLab_HomeTab.png|thumb|Default home tab when JupyterLab is loaded]] | [[File:JupyterLab_HomeTab.png|thumb|Default home tab when JupyterLab is loaded]] | ||
=== Menu bar on top === | === Menu bar on top === <!--T:23--> | ||
<!--T:24--> | |||
* In the ''File'' menu: | * In the ''File'' menu: | ||
** ''Hub Control Panel'': if you want to manually stop the JupyterLab server and the corresponding job on the cluster. This is useful when you want to start a new JupyterLab server with more or less resources | ** ''Hub Control Panel'': if you want to manually stop the JupyterLab server and the corresponding job on the cluster. This is useful when you want to start a new JupyterLab server with more or less resources | ||
Line 90: | Line 93: | ||
* Most other menu items are related to notebooks and Jupyter applications | * Most other menu items are related to notebooks and Jupyter applications | ||
=== Tool selector on left === | === Tool selector on left === <!--T:25--> | ||
<!--T:26--> | |||
* ''File Browser'' (folder icon): | * ''File Browser'' (folder icon): | ||
** This is where you can browse in your home, project and scratch spaces | ** This is where you can browse in your home, project and scratch spaces | ||
Line 109: | Line 113: | ||
** The last sub-panel is the list of ''Available modules'', similar to the output of <code>module avail</code>. By clicking on a module's name, detailed information about the module is displayed. By clicking on the ''Load'' link, the module will be loaded and added to the ''Loaded Modules'' list. | ** The last sub-panel is the list of ''Available modules'', similar to the output of <code>module avail</code>. By clicking on a module's name, detailed information about the module is displayed. By clicking on the ''Load'' link, the module will be loaded and added to the ''Loaded Modules'' list. | ||
=== Application area on right === | === Application area on right === <!--T:27--> | ||
<!--T:28--> | |||
* The ''Launcher'' tab is opened by default | * The ''Launcher'' tab is opened by default | ||
** It contains all available [[#Prebuilt_Applications|Jupyter applications and notebooks]], depending on which modules are loaded | ** It contains all available [[#Prebuilt_Applications|Jupyter applications and notebooks]], depending on which modules are loaded | ||
=== Status bar at the bottom === | === Status bar at the bottom === <!--T:29--> | ||
<!--T:30--> | |||
* By clicking on the icons, this brings you to the ''Running Terminals and Kernels'' tool. | * By clicking on the icons, this brings you to the ''Running Terminals and Kernels'' tool. | ||
== Prebuilt Applications == | == Prebuilt Applications == <!--T:31--> | ||
<!--T:32--> | |||
JupyterLab offers access to a terminal, an IDE (Desktop), a Python console and different options to create text and Markdown files. This section presents only the main supported Jupyter applications that work with the Compute Canada software stack. | JupyterLab offers access to a terminal, an IDE (Desktop), a Python console and different options to create text and Markdown files. This section presents only the main supported Jupyter applications that work with the Compute Canada software stack. | ||
=== Command Line Interpreters === | === Command Line Interpreters === <!--T:33--> | ||
<!--T:34--> | |||
[[File:JupyterLab_Launcher_Julia.png|thumb|Julia console launcher button]] | [[File:JupyterLab_Launcher_Julia.png|thumb|Julia console launcher button]] | ||
[[File:JupyterLab_Launcher_Python.png|thumb|Python console launcher button]] | [[File:JupyterLab_Launcher_Python.png|thumb|Python console launcher button]] | ||
[[File:JupyterLab_Launcher_Terminal.png|thumb|Terminal launcher button]] | [[File:JupyterLab_Launcher_Terminal.png|thumb|Terminal launcher button]] | ||
==== Julia Console ==== | ==== Julia Console ==== <!--T:35--> | ||
<!--T:36--> | |||
To enable the ''Julia 1.x'' console launcher, an <code>ijulia-kernel</code> module needs to be loaded. When launched, a Julia interpreter is presented in a new JupyterLab tab. | To enable the ''Julia 1.x'' console launcher, an <code>ijulia-kernel</code> module needs to be loaded. When launched, a Julia interpreter is presented in a new JupyterLab tab. | ||
==== Python Console ==== | ==== Python Console ==== <!--T:37--> | ||
<!--T:38--> | |||
The ''Python 3.x'' console launcher is available by default in a new JupyterLab session. When launched, a Python 3 interpreter is presented in a new JupyterLab tab. | The ''Python 3.x'' console launcher is available by default in a new JupyterLab session. When launched, a Python 3 interpreter is presented in a new JupyterLab tab. | ||
==== Terminal ==== | ==== Terminal ==== <!--T:39--> | ||
<!--T:40--> | |||
This application launcher will open a terminal in a new JupyterLab tab: | This application launcher will open a terminal in a new JupyterLab tab: | ||
* The terminal runs a (Bash) shell on the remote compute node without the need of an SSH connection | * The terminal runs a (Bash) shell on the remote compute node without the need of an SSH connection | ||
Line 147: | Line 158: | ||
** Paste operation: press Ctrl+V | ** Paste operation: press Ctrl+V | ||
=== Available Notebook Kernels === | === Available Notebook Kernels === <!--T:41--> | ||
==== Julia Notebook ==== | ==== Julia Notebook ==== <!--T:42--> | ||
<!--T:43--> | |||
To enable the ''Julia 1.x'' notebook launcher, an <code>ijulia-kernel</code> module needs to be loaded. When launched, a Julia notebook is presented in a new JupyterLab tab. | To enable the ''Julia 1.x'' notebook launcher, an <code>ijulia-kernel</code> module needs to be loaded. When launched, a Julia notebook is presented in a new JupyterLab tab. | ||
==== Python Notebook ==== | ==== Python Notebook ==== <!--T:44--> | ||
<!--T:45--> | |||
[[File:JupyterLab_Softwares_ScipyStack.png|thumb|Searching for scipy-stack modules]] | [[File:JupyterLab_Softwares_ScipyStack.png|thumb|Searching for scipy-stack modules]] | ||
If any of the following scientific Python packages is required by your notebook, before you open this notebook, you must load the <code>scipy-stack</code> module from the JupyterLab ''Softwares'' tool: | If any of the following scientific Python packages is required by your notebook, before you open this notebook, you must load the <code>scipy-stack</code> module from the JupyterLab ''Softwares'' tool: | ||
Line 165: | Line 178: | ||
* And many more (click on the <code>scipy-stack</code> module to see all ''Included extensions'') | * And many more (click on the <code>scipy-stack</code> module to see all ''Included extensions'') | ||
<!--T:46--> | |||
Note: you may also install needed packages by running for example the following command inside of a cell: <code>!pip install --no-index numpy</code> | Note: you may also install needed packages by running for example the following command inside of a cell: <code>!pip install --no-index numpy</code> | ||
* For some packages (like <code>plotly</code>, for example), you may need to restart the notebook's kernel before importing the package. | * For some packages (like <code>plotly</code>, for example), you may need to restart the notebook's kernel before importing the package. | ||
* The installation of packages in the default Python kernel environment is temporary to the lifetime of the JupyterLab session; you will have to reinstall these packages the next time you start a new JupyterLab session. For a persistent Python environment, you must configure a custom Python kernel. | * The installation of packages in the default Python kernel environment is temporary to the lifetime of the JupyterLab session; you will have to reinstall these packages the next time you start a new JupyterLab session. For a persistent Python environment, you must configure a custom Python kernel. | ||
<!--T:47--> | |||
To open an existing Python notebook: | To open an existing Python notebook: | ||
* Go back to the ''File Browser'' | * Go back to the ''File Browser'' | ||
Line 176: | Line 191: | ||
** An IPython kernel will start running in background for this notebook | ** An IPython kernel will start running in background for this notebook | ||
<!--T:48--> | |||
To open a new Python notebook in the current ''File Browser'' directory: | To open a new Python notebook in the current ''File Browser'' directory: | ||
* Click on the ''Python 3.x'' launcher under the ''Notebook'' section: | * Click on the ''Python 3.x'' launcher under the ''Notebook'' section: | ||
Line 181: | Line 197: | ||
** A new IPython kernel will start running in background for this notebook | ** A new IPython kernel will start running in background for this notebook | ||
=== Other Applications === | === Other Applications === <!--T:49--> | ||
==== OpenRefine ==== | ==== OpenRefine ==== <!--T:50--> | ||
<!--T:51--> | |||
[[File:JupyterLab_Launcher_OpenRefine.png|thumb|OpenRefine launcher button]] | [[File:JupyterLab_Launcher_OpenRefine.png|thumb|OpenRefine launcher button]] | ||
To enable the ''OpenRefine'' application launcher, an <code>openrefine</code> module needs to be loaded. Depending on the software environment version, the latest version of OpenRefine should be loaded: | To enable the ''OpenRefine'' application launcher, an <code>openrefine</code> module needs to be loaded. Depending on the software environment version, the latest version of OpenRefine should be loaded: | ||
Line 190: | Line 207: | ||
* With <code>StdEnv/2018.3</code>, load module: <code>openrefine/3.3</code> | * With <code>StdEnv/2018.3</code>, load module: <code>openrefine/3.3</code> | ||
<!--T:52--> | |||
This ''OpenRefine'' launcher will open or reopen an OpenRefine interface in a new Web browser tab: | This ''OpenRefine'' launcher will open or reopen an OpenRefine interface in a new Web browser tab: | ||
* It is possible to reopen an active OpenRefine session after the Web browser tab was closed | * It is possible to reopen an active OpenRefine session after the Web browser tab was closed | ||
* The OpenRefine session will end when the JupyterLab session will end | * The OpenRefine session will end when the JupyterLab session will end | ||
==== RStudio ==== | ==== RStudio ==== <!--T:53--> | ||
<!--T:54--> | |||
[[File:JupyterLab_Launcher_RStudio.png|thumb|RStudio launcher button]] | [[File:JupyterLab_Launcher_RStudio.png|thumb|RStudio launcher button]] | ||
To enable the ''RStudio'' application launcher, the following three modules need to be loaded: | To enable the ''RStudio'' application launcher, the following three modules need to be loaded: | ||
Line 202: | Line 221: | ||
# <code>rstudio-server</code> | # <code>rstudio-server</code> | ||
<!--T:55--> | |||
Depending on the software environment version, you should load the following two modules (<code>r</code> is loaded automatically): | Depending on the software environment version, you should load the following two modules (<code>r</code> is loaded automatically): | ||
* With <code>StdEnv/2020</code>, it is not yet supported | * With <code>StdEnv/2020</code>, it is not yet supported | ||
Line 207: | Line 227: | ||
* With <code>StdEnv/2016.4</code>, load modules: <code>gcc/7.3.0</code>, <code>rstudio-server/1.2.1335</code> | * With <code>StdEnv/2016.4</code>, load modules: <code>gcc/7.3.0</code>, <code>rstudio-server/1.2.1335</code> | ||
<!--T:56--> | |||
This ''RStudio'' launcher will open or reopen an RStudio interface in a new Web browser tab: | This ''RStudio'' launcher will open or reopen an RStudio interface in a new Web browser tab: | ||
* It is possible to reopen an active RStudio session after the Web browser tab was closed | * It is possible to reopen an active RStudio session after the Web browser tab was closed | ||
* The RStudio session will end when the JupyterLab session will end | * The RStudio session will end when the JupyterLab session will end | ||
==== VS Code ==== | ==== VS Code ==== <!--T:57--> | ||
<!--T:58--> | |||
[[File:JupyterLab_Launcher_VSCode.png|thumb|VS Code launcher button]] | [[File:JupyterLab_Launcher_VSCode.png|thumb|VS Code launcher button]] | ||
To enable the ''VS Code'' (Visual Studio Code) application launcher, a <code>code-server</code> module needs to be loaded. Depending on the software environment version, the latest version of VS Code should be loaded: | To enable the ''VS Code'' (Visual Studio Code) application launcher, a <code>code-server</code> module needs to be loaded. Depending on the software environment version, the latest version of VS Code should be loaded: | ||
Line 218: | Line 240: | ||
* With <code>StdEnv/2018.3</code>, load module: <code>code-server/3.4.1</code> | * With <code>StdEnv/2018.3</code>, load module: <code>code-server/3.4.1</code> | ||
<!--T:59--> | |||
This ''VS Code'' launcher will open or reopen the VS Code interface in a new Web browser tab: | This ''VS Code'' launcher will open or reopen the VS Code interface in a new Web browser tab: | ||
* For a new session, the ''VS Code'' session can take up to 3 minutes to complete its startup. | * For a new session, the ''VS Code'' session can take up to 3 minutes to complete its startup. | ||
Line 223: | Line 246: | ||
* The VS Code session will end when the JupyterLab session will end | * The VS Code session will end when the JupyterLab session will end | ||
==== Desktop ==== | ==== Desktop ==== <!--T:60--> | ||
<!--T:61--> | |||
[[File:JupyterLab_Launcher_Desktop.png|thumb|Desktop launcher button]] | [[File:JupyterLab_Launcher_Desktop.png|thumb|Desktop launcher button]] | ||
This ''Desktop'' launcher will open or reopen a remote Linux desktop interface in a new Web browser tab: | This ''Desktop'' launcher will open or reopen a remote Linux desktop interface in a new Web browser tab: | ||
Line 231: | Line 255: | ||
* The desktop session will end when the JupyterLab session will end | * The desktop session will end when the JupyterLab session will end | ||
= Possible error messages = | = Possible error messages = <!--T:62--> | ||
<!--T:63--> | |||
Most JupyterHub errors are caused by the underlying job scheduler which is either unresponsive or not able to find appropriate resources for your session. For example: | Most JupyterHub errors are caused by the underlying job scheduler which is either unresponsive or not able to find appropriate resources for your session. For example: | ||
* A "time-out" error message when starting a JupyterLab session: | * A "time-out" error message when starting a JupyterLab session: |