PChem3 Tutorial Setting Machine
PChem3 Tutorial Setting Machine
Chapter 1
This chapter illustrates how to set up your machine for the Python tutorial and programming sessions
in the Physical Chemistry 3 course. You can use your own machine, whether it operates on Windows or
MacOS (refer to Section 1.1 or 1.2). Alternatively, you can explore the elice service provided by Seoul
National University, which allows access to computing resources via web browsers, featuring Visual
Studio Code web UI (refer to Section 1.3).
3
Physical Chemistry 3 Spring 2024, SNU
» Execute the installer. Do not change the options, and just proceed to the next step by just clicking
yes. Especially, do nothing here:
Figure 1.3: These are the default options. Do not check or uncheck something.
» After the installation is completed, launch anaconda navigator. From there, you can launch var-
ious types of anaconda-related programs. You can also launch jupyter notebook by clicking the
logo.
» Anaconda Powershell Prompt is the useful tool for you. When I say terminal, you should under-
stand as anaconda powershell prompt, from now on. Execute anaconda powershell prompt from
the anaconda navigator, or search it in the applications.
4
Physical Chemistry 3 Spring 2024, SNU
Installing Python
For the consistency, install specific version of Python. Codes for tutorials and practice sessions are not
tested for all possible Python versions, so different version of Python may show unexpected behaviors.
If the program asks you to proceed or not, type y and press enter to confirm.
Now you are all set! To execute jupyter notebook, type jupyter notebook in the anaconda powershell
prompt, while you are in the directory that contains Python tutorial codes or the programming session
codes.
⚠️ Warning. Do not forget to activate your virtual environment PChem3 every time you open the ana-
conda powershell prompt.
5
Physical Chemistry 3 Spring 2024, SNU
Installing mamba
For convenience, we will utilize package manager mamba. You can also install anaconda instead, but
we recommend using mamba since it is much faster than anaconda.
⚠️ Warning. If you had already installed conda in your machine, do not install mamba (again). This
action will overwrite some important Python settings and mess up your environmental variables. Just
skip to Creating a new virtual environment.
Copy, paste the following code into your terminal and execute it. If the program asks you to proceed or
not, type y and press enter to confirm.
Follow the instructions displayed on the terminal. Restart your terminal once after the installation.
Installing Python
For the consistency, install specific version of Python. Codes for tutorials and practice sessions are not
tested for all possible Python versions, so different version of Python may show unexpected behaviors.
If the program asks you to proceed or not, type y and press enter to confirm.
6
Physical Chemistry 3 Spring 2024, SNU
Now you are all set! To execute jupyter notebook, type jupyter notebook in the terminal, while you are
in the directory that contains Python tutorial codes or the programming session codes.
⚠️Warning. Do not forget to activate your virtual environment PChem3 every time you open the termi-
nal.