Contents

Working with Conda

If you’re using Conda, setting up an environment for Zasper is simple and robust. Conda is especially useful for data science projects, where binary packages like PyTorch, TensorFlow, or NumPy need to be installed efficiently.

Follow the steps below to create a new environment and register it as a Jupyter kernel.

Step 1: Create a New Environment

conda create --name torchEnv

This creates an isolated environment named torchEnv. You can also specify a Python version if needed:

conda create --name torchEnv python=3.11

Step 2: Activate the Environment

conda activate torchEnv

After activation, any packages you install or code you run will use this environment.

Step 3: Install Required Packages

Install the ipykernel package, which is needed to register the environment as a Jupyter kernel:

conda install -c anaconda ipykernel

You can also install any additional dependencies here, such as numpy, torch, or pandas.

Step 4: Register the Kernel

Once ipykernel is installed, run the following to make the environment available in Jupyter and Zasper:

python -m ipykernel install --user --name=torchEnv

This registers torchEnv as a selectable kernel for experimenting inside Zasper.

Registering is what makes the environment available wherever you open Zasper. Without it, Zasper still finds a conda environment that has ipykernel when you start Zasper from a shell with that environment activated, and your base Anaconda, Miniconda or Miniforge install when its Python has ipykernel — those appear in the Launcher as Python 3.x (torchEnv) or Python 3.x (miniconda3) without a kernelspec. See Installing Jupyter Kernels.

You’re All Set

Your torchEnv Conda environment is now ready to use as a kernel in Zasper. Launch the app, select the environment from the kernel picker, and start working.