šĀ If you need additional packages or dependencies for your course, pleaseĀ contact our support team: dl.min@uni-hamburg.de. To avoid multiple user installations, we can add them to the Docker container.
In JupyterLab, you can install new packages or dependencies via the command line. Here are the steps:
- Go to the launcher: In the left sidebar, click the blue button with the plus.
- Start a terminal: Select the terminal in the last section of the launcher. A bash environment will now start.
-
Install the packages: Depending on the package manager, enter the appropriate command and then pressEnter:
-
Python:
pip install <
paketname>
To install several packages at once, separate their names with a space.The files are installed inĀ.local/lib/python3.11/site-packages
. -
R:
R --no-save <<< "pak::pkg_install(c('<paketname>'))
"
To install several packages at once, separate their names with a comma. The package manager ensures that all required dependencies are installed automatically.
The files are installed inĀ.local/share/R
. -
Ruby:
gem install <paketname>
To install several packages at once, separate their names with a space.
The files are installed inĀ.local/libshare/gem.
-
Python: