This can be useful for Jupyter notebook tools as https://max-jhub.desy.de/hub/login
After this make sure that you adjust the :ref:`configuration` and settings in the xfel-calibrate
folder to match your environment.
SSH Key Setup for GitLab
========================
The tool-chain is then available via the::
It is highly recommended to set up SSH keys for access to GitLab as this
simplifies the setup process for all of our internal software present on GitLab.
xfel-calibrate
To set up the keys:
command.
1. Connect to Maxwell
2. Generate a new keypair with ``ssh-keygen -o -a 100 -t ed25519``, you can
either leave this in the default location (``~/.ssh/id_ed25519``) or place it
into a separate directory to make management of keys easier if you already
have multiple ones. If you are using a password for your keys please check
this page to learn how to manage them: https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent
3. Add the public key (``id_ed25519.pub``) to your account on GitLab: https://git.xfel.eu/gitlab/profile/keys
4. Add the following to your ``~/.ssh/config`` file
.. code::
Installation using karabo
+++++++++++++++++++++++++
# Special flags for gitlab over SSH
Host git.xfel.eu
User git
Port 10022
ForwardX11 no
IdentityFile ~/.ssh/id_ed25519
If required, one can install into karabo environment. The difference would be to
first source activate the karabo envrionment::
1. source karabo/activate
then after cloning the offline calibration package from git, the requirements can be installed through::
3. pip install -r requirements.txt .
Development Installation
------------------------
For a development installation in your home directory, which automatically
picks up (most) changes, first install the dependencies as above,
but then install the tool-chain separately in development mode::
pip install -e . --user
.. note:: Using "- -target" for development installation in a preferred directory can lead to errors.
.. note:: For development installation in karabo environment "- -user" is not needed.
Installation of New Notebooks
-----------------------------
To install new, previously untracked notebooks in the home directory,
repeat the installation of the the tool-chain, without requirments,
from the package base directory::
pip install --upgrade . --user
Or, in case you are actively developing::
pip install -e . --user
Once this is done you can clone repositories you have access to from GitLab
without having to enter your password each time. As ``pycalibration``
requirements are installed from SSH remote URLs having SSH keys set up is a