Installation
Docker image
Before using ipybox
, you need to build a Docker image. This image contains all required dependencies for executing Python code in stateful and isolated sessions.
Default build
To build an ipybox
Docker image with default settings:
This creates a Docker image tagged as gradion-ai/ipybox
containing the base Python dependencies required for the code execution environment.
Note
By default, containers created from this image will run with the same user and group IDs as the user who built the image, ensuring proper file permissions on mounted host directories. If you use the -r
or --root
option when building the image, the container will run as root.
Custom build
To create a custom ipybox
Docker image with additional dependencies, create a dependencies file (e.g., dependencies.txt
). For example:
Then build the image with a custom tag and dependencies:
The dependencies file should use the Poetry dependency specification format. These packages will be installed alongside the base dependencies required for the execution environment. You can also install additional dependencies at runtime.