In the lab we use a set of Python libraries, within OpenSesame to program our studies.
Python is a popular programming language with a simple, easy to learn syntax that emphasizes readability.
Anaconda is a distribution of Python for scientific computing. Anaconda has many very useful third-party libraries such as Numpy, Pandas, and Matplotlib built in, so installing Anaconda is much easier than the regular Python installation.
Anaconda Navigator is a GUI tool that is included in the Anaconda distribution and makes it easy to configure, install, and launch tools such as Jupyter Notebook, an open-source web application that allows data scientists to create and share documents that integrate live code, equations, computational output, visualizations, and other multimedia resources, along with explanatory text in a single document. This article explains the benefits of using Jupyter.
To get started with Python follow this (excellent!) Python tutorial.
LinkedIn Learning is available to all faculty, staff, and students at PC. Access it by logging into to your LinkedIn account with your Providence College email.
In our lab we use python for programming our studies and R for analysing our data, but we can also analyse our data with Python. The following textbook is a great introduction to python for data analysis.
Reproducible Data Science with Python by Valentin Danchev
This textbook provides an accessible introduction to open, reproducible, and ethical data analysis using hands-on Python coding, modern open-source computational tools, and data science techniques. Topics include open reproducible research workflows, data wrangling, exploratory data analysis, data visualisation, pattern discovery (e.g., clustering), prediction & machine learning, causal inference, and network analysis.
Both Conda and Homebrew provide ways to manage Python installations on macOS, but they serve slightly different purposes and come with their own sets of advantages and disadvantages. Let’s explore both options in detail to help you decide which is more suitable for your workflow.
Conda is a powerful package, environment, and dependency manager. It’s designed to manage not only Python but also other languages and packages like R, C, and more. It excels at creating isolated environments for specific projects, with different Python versions and dependencies.
Environment Management:
conda create --name py39 python=3.9
conda activate py39