Skip to content
/ c-py Public template

Python and C devcontainer Template

Notifications You must be signed in to change notification settings

who0joe/c-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devcontainer for Python and C in VS Code Remote-Containers (for Windows)

Requirements

How to use

  1. Create a new repository using this template.
  2. Clone the repository you just created.
  3. Run vscode and open the repository you just cloned.
  4. Open /.devconaier/devcontainer.json and change the value of "GIT_USER_NAME" and "GIT_USER_EMAIL" to your git user name and email.
    {
        // Before
        "postCreateCommand": "git config --global user.name 'GIT_USER_NAME' && git config --global user.email 'GIT_USER_EMAIL'",
        // After
        "postCreateCommand": "git config --global user.name 'Your Name' && git config --global user.email 'Your Email'",
    }
  5. Install "Remote-Containers" Extension. (ID: ms-vscode-remote.remote-containers)
    "ctrl + shift + x" (for windows) and search for "Remote-Containers"
  6. Run devcontainer envirnoment.
    "ctrl + shift + p" (for windows) and "Remote-Containers: Rebuild and Reopen in Container"
    (OR click bottom left corner "Reopen in Container" when you open this repository in vscode.)
  7. Wait for the container to run and install the required packages.
  8. Enjoy coding with Jupyter Notebook in vscode.

Note: If you want to use C kernel in Jupyter Notebook, you need to change the kernel in the notebook.

  1. Go to sample file in ./c/C (Sample).ipynb
  2. Click the "Select Kernel" button on the top right corner of the file.
  3. Select "C" kernel. (Select Another Kernel -> Jupyter Kernel -> C)

What's included

  • Jupyter Notebook Kernel for Python 3.12.0
  • Jupyter Notebook Kernel for C (jupyter-c-kernel 1.2.2)
  • git 2.39.2
  • gcc (Debian 12.2.0-14) 12.2.0
  • g++ (Debian 12.2.0-14) 12.2.0
  • make 4.3
  • cmake 3.25.1
  • GNU gdb (Debian 13.1-3) 13.1
  • Python 3.12.0
  • pip 23.3.1

Docker Image

About

Python and C devcontainer Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published