17 July 2025, 15:47:41
Please follow the instructions in Python minimal install step by step and come back here when you are done.
To test your python environment, you will create a new data analysis project and run a Jupyter notebook.
Python-Series-00
.Move the folder to the right place on your computer.
Courses
in your Documents
folder and then a subfolder IEAP
and then a subfolder Python
.Series 00
or Series00!
). Reason: it will make your life more difficult when you will use the command line.Launch VScode
Python-Series-00
in a new windowmain.ipynb
main.ipynb
by clicking the Run all
button .This is where things get complicated, because the problem is specific to YOUR computer...
But here are some general advices:
Configuration.ipynb
In this cell, write the following code:
import sys
import os
import platform
# manually enter your information here
lastName = "YOUR_FAMILY_NAME" # replace with your family name
firstName = "Your_Given_Name" # replace with your given name
operatingSystem = "Your_Operating_System" # replace with your operating system
duration = 1.5 # replace with the duration it took you to complete this assignment
# print the manually entered information
print("Name:", firstName, lastName)
print("Operating System:", operatingSystem)
print("Duration:", duration, "hours")
# print the operating system information
print("platform:", platform.platform())
print("system:", platform.system())
print("machine:", platform.machine())
print("processor:", platform.processor())
print("node:", platform.node())
print(" Mac :", platform.mac_ver())
print(" Linux:", platform.libc_ver())
print(" Windows:", platform.win32_ver())
print("python:", platform.python_version())
# print python kernel information
print(" kernel: ", sys.executable)
print(" python", sys.version)
# print current working directory
print("cwd:", os.getcwd())
NB : the output of the code should look like below:
Name: Denis MOTTET Operating System: OSX Sonoma Duration: 1.5 hours platform: macOS-15.5-arm64-arm-64bit system: Darwin machine: arm64 processor: arm node: MacBook-Pro-de-Denis.local Mac : ('15.5', ('', '', ''), 'arm64') Linux: ('', '') Windows: ('', '', '', '') python: 3.10.13 kernel: /Users/denismottet/miniconda3/envs/m2-2024/bin/python python 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:09:17) [Clang 16.0.6 ]
Your environment is ready for the first class.