Associating a Python virtual environment with a Cloudera Data Engineering Session

You can associate the Python virtual environment with a CDE Session at the time of creation.

Before you begin

  • Download and configure the CDE CLI.
  • Create a Python virtual environment CDE resource.

Steps

  1. Using the CDE CLI, run the cde session create command to associate a Python virtual environment with the session.
    cde session create --name python-env-example  --python-env-resource-name cde-python-env-resource

Before you begin

  • Create a Python virtual environment CDE resource.
  • Create a CDE Session.

Steps

  1. In the Cloudera Data Platform (CDP) console, click the Data Engineering tile. The CDE Home page displays.
  2. Click Sessions on the left navigation menu.
  3. Using the dropdown menu, select the virtual cluster containing the application you want to manage.
  4. Click Create.
  5. In the Python Environment section, click Select Python Environment.
  6. Select the Python virtual environment resource that you want to use, and then click Select Resource.
  7. Set additional configurations as needed.
  8. Click Create.