Installing additional packages¶
Do not install packages by running
!pip install <package-name> inside your
Jupyter Notebook. This causes the package to be installed every time you run the pipeline
step. It is not saved in the environment as containers are stateless!
To install additional packages or to run other terminal commands inside the base image, we support custom Environments. We essentially create a new image by running your script inside the selected base image.
Build an environment¶
- Simply go to Environments in the left menu pane.
- Create a new Environment. Environments are part of a single project.
- Choose an Environment name.
- To keep environment image sizes to a minimal, each environment is tied to a specific programming language. Choose one of the supported languages for your environment.
- Choose a base image. This image will be extended through your setup bash script.
- Install additional packages, e.g.
pip install tensorflowor
apt install vim.
The shell script that installs the additional packages is run inside the
meaning that you can directly interact with your project files from within the script. For
#!/bin/bash # Install any dependencies you have in this shell script. # E.g. pip install tensorflow pip install -r requirements.txt