Cloning a Conda Environment in Your Notebook Session
After a conda environment is installed, it can be cloned.
Cloning provides you a sandbox environment that you can modify by installing more libraries. The original environment remains available locally in a notebook session and is unmodified. You can clone an Installed Conda Environment by clicking Clone in an environment card. Copy the odsc conda clone
command, and then run it in a terminal window tab. Provide a new name for the cloned environment, and (optionally) a version number.
You can also clone directly in the terminal using this odsc conda
command:
odsc conda clone -f <slug> -e <target-name>
The command defines the slug of the source environment and the name of the target environment. You are prompted to change the version of the conda environment, which is optional.
A cloned environment can't have the same name and version as the source conda environment you want to clone. You can use the same name (with the command
odsc conda clone -f <slug>
), but you must change the version.