"Depending on your install, you might have one or two selections here. `jupyter-kernelspec` shows you the kernels that you can use. The one you installed the above packages with should be here. We don't need these anyway. Just so you know about that."
"In order to use these different modules one has to specify them in the call:\n",
"\n",
"1. Module: `miniconda3`\n",
"2. Name: `PyS1` for Python on srvx1\n",
"3. Host: `mblaschek@srvx1.img.univie.ac.at` username and server\n",
"\n",
"In order to allow easy access adding the public key to ssh authentication is recommended. Otherwise set `export SSH_ASKPASS=1` and you should be prompted each time the connection is established."
"of course the remote kernel can be used in a local jupyter notebook or lab.\n",
"\n",
"## Remarks\n",
"\n",
"When running kernels on remote machines, the notebooks themselves will be saved onto the local filesystem, but the kernel will only have access to filesystem of the remote machine running the kernel. If you need shared directories, set up `sshfs` between your machines."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
%% Cell type:markdown id: tags:
# Connecting to remote IPython Kernels
In order to connect a few things need to be setup:
1. install Jupyter Console
2. install Remote Ikernel
3. configure the kernel
These commands will install the required packages into your `~/.local/bin` and `~/.local/lib` directories by default in Linux/Mac.
If you are using the **anaconda** then the packages will be installed there.
Make sure that the `/bin` path is in your `$PATH` environment variable.
## Install the required packages
%% Cell type:code id: tags:
``` python
!pip3-qinstalljupyter-console
```
%% Cell type:code id: tags:
``` python
!pip3-qinstallremote_ikernel
```
%% Cell type:code id: tags:
``` python
# this might not be necessary for everyone
# adjust the path accordingly to make sure that jupyter-kernelspec, jupyter and remote_ikernel can be found.
Depending on your install, you might have one or two selections here. `jupyter-kernelspec` shows you the kernels that you can use. The one you installed the above packages with should be here. We don't need these anyway. Just so you know about that.
In order to use these different modules one has to specify them in the call:
1. Module: `miniconda3`
2. Name: `PyS1` for Python on srvx1
3. Host: `mblaschek@srvx1.img.univie.ac.at` username and server
In order to allow easy access adding the public key to ssh authentication is recommended. Otherwise set `export SSH_ASKPASS=1` and you should be prompted each time the connection is established.
of course the remote kernel can be used in a local jupyter notebook or lab.
## Remarks
When running kernels on remote machines, the notebooks themselves will be saved onto the local filesystem, but the kernel will only have access to filesystem of the remote machine running the kernel. If you need shared directories, set up `sshfs` between your machines.