Development Environment

This guide will help you set up your development environment by installing required tools: Python programming language, GitHub for version control, and PyCharm IDE.

Python

GitHub

  1. Create a GitHubarrow-up-right account (if you do not already have one). As a student, you can get GitHub Proarrow-up-right features for free through the GitHub Student Developer Packarrow-up-right.

  2. Login to GitHub.

  3. Create a new repository named "nlp-essentials" and set its visibility to Private.

    Create a GitHub repository.
  4. Go to [Settings] in your repository, and select [Collaborators and teams].

  5. Click [Add people], and add each instructor using their GitHub usernames:

    1. Find their GitHub IDs in the "Instructors" section of the Syllabus.

    2. Enter each username and send the collaboration invitation.

  6. Verify that all instructors have been added as collaborators.

Add collaborators to your GitHub repository.

PyCharm

  1. Install PyCharmarrow-up-right on your local machine:

    1. As a student, you can get PyCharm Professionalarrow-up-right for free by applying for a JetBrains Educational Licensearrow-up-right.

    2. The following instructions are based on PyCharm 2024.3.x Professional Edition.

  2. Configure your GitHub account:

    1. Go to [Settings] > [Version Control] > [GitHub].

    2. Press [+], select [Log in via GitHub], and follow the browser prompts to authorize PyCharm with your GitHub account.

    3. Once connected, you will be able to access GitHub directly from PyCharm for version control operations.

Add your GitHub account to PyCharm.
  1. Create a new PyCharm project from GitHub:

    1. On the PyCharm welcome screen, click [Clone Repository].

    2. In the new window, select [GitHub] from the left menu, choose your nlp-essentials repository, and click [Clone] (verify the directory name is "nlp-essentials").

  2. Set Up a Python virtual environment:

    1. Go to [Settings] > [Project: nlp-essentials] > [Project Interpreter].

    2. Click [Add Interpreter] and choose [Add Local Interpreter].

  3. In the prompted menu, choose [Add Local Environment], configure as follows, then click [OK]:

    • Environment: Generate new

    • Type: Virtualenv

    • Base python: the Python version you installed above

    • Location: YOUR_LOCAL_PATH/nlp-essentials/.venv

    Add a virtual environment.

References

Last updated

Was this helpful?