DataSpell
 
Get DataSpell
You are viewing the documentation for an earlier version of DataSpell.

Set up a working environment

Last modified: 06 September 2022

Python environment settings

File | Settings | Project: <project name> | Python Interpreter for Windows and Linux

DataSpell | Preferences | Project: <project name> | Python Interpreter for macOS

To execute notebooks or Python code in DataSpell, you need to configure at least one virtual environment based on a Python interpreter. You can configure Conda, Virtualenv or Pipenv.

When you attach a directory to the workspace or open a project, the IDE creates a virtual environment for you. In most cases, it is a Conda environment based on your Anaconda installation. You can select any other Python environment on your machine or create a new one.

To preview a configured Python environment, modify its settings, and update packages, press Ctrl+Alt+S and go to Project <workspace> | Python Interpreter.

Configured interpreters

Note that the Workspace SDK: prefix indicates the workspace-specific environment. By default, this environment is configured for a newly attached directory. So, when the environment of the workspace changes, it changes for all directories that use it.