Hello Daniela Elia, Welcome to the MS Q&A platform.
As per my research, you can use conda
package manager to create a virtual environment in Synapse notebooks.
You can follow the below steps.
Run the following command in the Synapse notebook to create a new environment.
%pip install conda
!conda create --name myenv
Activate the environment by running the following command:
conda activate myenv
.
Install packages in the environment using the
conda install
Command.
To deactivate the environment, run the following command:
conda deactivate
.
I hope this helps. Please let me know if you have any further questions.