Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When specifying the location of a Python executable in the Python Manager(3.3) or in the Python Interpreter Profile (3.3), you can either use the path to the executable in the file system or use connection details to a Python daemon. If you choose to connect to a Python daemon, you can provide your own sidecar container for running Python processes.

The sidecar container is an extra container that you add to the ECD. To use the sidecar container, you must create your own Docker image and include the pythond.py script in your image. This script can be found in ${mz.home}the /opt/mz/python/ directory on the platform container.

To connect to the Python daemon running in the sidecar container, you need to configure the Python Manager to connect using localhost:port, where port is the port that the daemon is listening to, for example, localhost:5454.

Here is an example of a Dockerfile that you can use to build your image:

...

In this example, the python:3.12 base image is used and the pandas package is installed with pip. The pythond.py script is then copied to the container and the command is set to run the script with port 5454.

...