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
- 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
- In the Cloudera Data Platform (CDP) console, click the Data Engineering tile. The CDE Home page displays.
- Click Sessions on the left navigation menu.
- Using the dropdown menu, select the virtual cluster containing the application you want to manage.
- Click Create.
- In the Python Environment section, click Select Python Environment.
- Select the Python virtual environment resource that you want to use, and then click Select Resource.
- Set additional configurations as needed.
- Click Create.