GithubHelp home page GithubHelp logo

devcontainer's Introduction

Python Boilerplate with Pytorch GPU support

GitHub License: MIT GitHub stars GitHub forks

GitHub last commit GitHub last commit

GitHub issues GitHub pull requests

๐Ÿ“™ Introduction

  • PyTorch GPU boilerplate for deep learning projects.
  • Also includes Ruff, Pytest, Pre-commit, Poetry set-up for a development environment.
  • [Branch: devcontainer] Provides a devcontainer set-up for GitHub Codespaces and Visual Studio Code Remote Development.
PyTorch Poetry Python Jupyter
Ruff Pytest Pre-commit Pyright

๐Ÿš€ Quick Start

1. Open Visual Studio Code with Remote Development

2. Create your repository using template with the devcontainer branch

  • Click the Use this template button on the top-right of this repository.
  • Select the include all branches option to include the devcontainer branch.
    • devcontainer branch is included by default branch.
  • Click the Create repository button.

3. Open the repository in Visual Studio Code

  • Open the repository in Remote Server or Codespaces.
  • Click the Reopen in Container button to open the repository in the devcontainer.
    • You may need to install Docker if you are using a local machine.
  • A new container will be created and the repository will be opened in the new container. (It may take a few minutes to build the container for the first time.)
  • (Optional) Click the Reopen in Workspace button to open the repository in the workspace.
    • Additional extensions and settings will be applied to the workspace.

4. Install additional dependencies

Done! ๐ŸŽ‰




๐Ÿ“” Additional Information

Commit Signinig with SSH (Verified Commit)

note You don't need to set up git on the devcontainer. The git configuration on the local machine will be reflected to the devcontainer automatically.

  1. Generate a new SSH key and add it to your GitHub account.

    # Creates a new ssh key, using the provided email as a label
    ssh-keygen -t ed25519 -C "your@github_email"
    
    # Start the ssh-agent in the background (if not already running)
    eval "$(ssh-agent -s)"
    
    # Add your SSH private key to the ssh-agent
    ssh-add PATH/TO/.SSH/PRIVATE_KEY   # e.g. ~/.ssh/id_ed25519
  2. Add the SSH key to your GitHub account.

  3. Set your user name and email address to your GitHub username and email.

    git config --global user.name "your_github_username"
    git config --global user.email "your@github_email"
  4. Set global git configuration for signing.

    git config --global gpg.format ssh
    git config --global gpg.ssh.defaultKeyCommand "ssh-add -L"
  5. Add following line to your settings.json in Visual Studio Code.

    "git.enableCommitSigning": true

devcontainer's People

Contributors

bsy0594 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.