项目作者: gh640

项目描述 :
This repository is made for visualizing the Stack Overflow Developer Survey 2020 results
高级语言: Jupyter Notebook
项目地址: git://github.com/gh640/stack-overflow-developer-survey-charts-2020.git
创建时间: 2021-05-06T04:44:26Z
项目社区:https://github.com/gh640/stack-overflow-developer-survey-charts-2020

开源协议:MIT License

下载


Stack Overflow Developer Survey Charts 2020

This repository is made for visualizing the Stack Overflow Developer Survey 2020 results. Currently stats only for Python and Rust are visualized.

Charts

You can see generated charts for Python related stats in the following pages.

Prerequisites

  • Docker
  • Docker Compose

Usage

If you want to run the notebook in your environment, follow the steps below.

  1. Clone this repo.
  2. Build Docker image.
  3. Download the survey data.
  4. Run Jupyter notebook.
  5. Stop Jupyter notebook.

1. Clone this repo.

Clone this repository.

  1. $ git clone https://github.com/gh640/stack-overflow-developer-survey-charts-2020

2. Build Docker image.

  1. docker compose build

3. Download the survey data.

Download the csv file which contains the survey results by clicking Download Full Data Set (CSV) in 2020 section in the following page.

Then, extract the zip file and put the csv file named survey_results_public.csv under data/ directory.

  1. TMP_ZIP="/tmp/2020.zip"
  2. ZIP_URL="https://info.stackoverflowsolutions.com/rs/719-EMH-566/images/stack-overflow-developer-survey-2020.zip"
  3. http -d --output="${TMP_ZIP}" "${ZIP_URL}"
  4. unzip "${TMP_ZIP}" -d /tmp/
  5. mv /tmp/survey_results_public.csv ./data/

4. Run Jupyter notebook.

Now you’ve finished to prepare the environment and run the command below to see the Jupyter notebook. It can be done with Docker easily.

  1. docker-compose up -d
  2. docker-compose logs -f

Open the URL in the log stream with your browser. Then click plot_so_developer_survey_python.ipynb in the list.

5. Stop Jupyter notebook.

After using the notebook, Stop Jupyter notebook.

  1. docker-compose down

Delete the Docker image after you’ve finished using the image.

References

License

Licensed under MIT license.