How to create virtual environments in Synapses Analytics notebooks?

Daniela Elia 21 Reputation points

I would like to create virtual environments in Synapses Analytics notebooks. Is that enabled? If so, where can I find some documentation to guide me through the process? Thanks, Daniela

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,498 questions
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 27,896 Reputation points Microsoft Employee

    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.

    1 person found this answer helpful.
    0 comments No comments