Skip to content

Some material to introduce to Python, with a focus on Social Networks.

License

Notifications You must be signed in to change notification settings

AndreaPasqualini/intro_to_python_with_networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Python and Numerical Methods for Social Networks

This repository is a collection of material related to the course in Social and Economic Networks, offered to Master's students at Bocconi University.

Setup instructions

In order to use Python on your computer, you have to download it. However, "base Python" only consists of a small set of core functions. This is not very useful for us. Instead, we need Python and many related packages, each one of them being suited for different tasks. The most popular and reliable way to obtain everything we need is by downloading and installing Anaconda. Anaconda is a distribution of Python and Python packages. It is based on the program conda, which is the package manager. All the packages that we need are included in Anaconda, out of the box.

Head over to https://www.anaconda.com/ and download the appropriate installer for your Operating System (OS). You will be asked whether to install Python 3.x or Python 2.x. You should choose Python 3.x, as Python 2 has reached end-of-life and is offered only for compatibility for legacy developers (not us). Once you downloaded the installer, follow the installation instructions.

Once you installed Anaconda, you should be able to open Spyder, the Integrated Development Environment (IDE) provided with Anaconda. If you used Matlab or RStudio in the past, Spyder will look familiar.

spyder

If you are able to open Spyder, then you are all set and ready to read further.

What are these .ipynb files I can find here?

Glad you asked! These are Jupyter Notebooks. In essence, they are web documents that embed both code and text. They are convenient because GitHub renders these notebooks in a web browser. This means I can share code and explain it in one single document. It also means I do not have to fiddle with LaTeX, code listings and screenshots. Each of these notebooks can be easily exported to HTML files, so that you can open them in your browser and you do not need to have Python installed to read them.

If you are interested in understanding how to create a Jupyter Notebook, read the mini-tutorial I wrote or check the official documentation.

About

Some material to introduce to Python, with a focus on Social Networks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages