19px
CCPP-I · Setup

First-day setup

Master TCCM · Universitat de València · October 2026

Do steps 1–3 before Monday if you can. If anything fails, stop there: we fix it together in the first hour of class.

Before class

Installation

  1. Install Anaconda

    Download the installer for your system from anaconda.com/download (the free "Distribution"; skip the registration if it is offered) and run it with the default options.

    Windows: keep "Add to PATH" unticked, as the installer suggests; you will use Anaconda Prompt instead of the normal terminal.

  2. Open a terminal and check

    Windows: Start menu → Anaconda Prompt. macOS: Terminal. Linux: any terminal. Type:

    conda --version
    python --version

    Both should print a version number. If conda is "not found", see Troubleshooting below.

  3. Create the course environment

    This installs Python and Jupyter Lab. It takes a few minutes; answer y when asked.

    conda create -n pytccm -c conda-forge python=3.12 jupyterlab

    The scientific libraries (NumPy, Matplotlib, SciPy, …) are installed during the course, when a class first needs them. The command is always of the form

    conda install -c conda-forge <package>

    Every time you open a new terminal to work on the course, activate the environment first:

    conda activate pytccm

    The prompt then starts with (pytccm). "Module not found" errors almost always mean you forgot this step.

  4. Start Jupyter Lab

    Make a folder for the course (for example pytccm in your home directory), move into it and start Jupyter Lab:

    conda activate pytccm
    mkdir pytccm
    cd pytccm
    jupyter lab

    A browser tab opens. Leave the terminal window open while you work; Ctrl+C there stops Jupyter Lab.

  5. Test it

    In the Jupyter Lab Launcher tab click Python 3 under Notebook, type the line below in the first cell and run it with Shift+Enter.

    print("Hello world!")
    

    If it prints Hello world! with no error, you are ready.

  6. A text editor (can wait until the first homework)

    Homework is submitted as .py files, which you write in an editor, not in a notebook. Any editor works; VS Code with its Python extension is a good default. Jupyter Lab also has a built-in text editor (File → New → Python File).

Troubleshooting

conda: command not found (macOS / Linux)

The installer did not set up your shell. Run the line below once, then close and reopen the terminal.

~/anaconda3/bin/conda init
conda not recognized (Windows)

You are in PowerShell or cmd instead of Anaconda Prompt. Search the Start menu for "Anaconda Prompt" and use that window.

The conda create step is very slow or ends with a conflict

Update conda in the base environment and try again:

conda update -n base conda
conda create -n pytccm -c conda-forge python=3.12 jupyterlab
jupyter lab opens nothing

Copy the address printed in the terminal (it starts with http://localhost:8888/lab?token=) into your browser.

I already have Anaconda or Miniconda installed

Fine: skip step 1 and go straight to step 2.

Schedule

Aula PC-5, 1st floor, building E, Facultat de Química

DateTimeTopic
Mon 5 Oct09:00–13:00Python fundamentals, control flow, functions
Thu 15 Oct17:00–19:00NumPy
Fri 16 Oct09:00–13:00Plotting, SciPy, ASE
Mon 26 Oct09:00–13:00Object-oriented programming; course project handed out
Fri 30 Oct11:00–13:00Open session: project questions, interactive widgets
Mon 2 Nov09:00–13:00Exam: oral discussion of your project

How the course works