Running whobpyt in GitHub Codespaces#

GitHub Codespaces is a new feature that allows you to run a full VS Code environment in the cloud and access it from your browser.

We have added pre-made configurations for you to use whobpyt in GitHub Codespaces, which takes care of cloning, installing python, setting up the environment, and installing the pertinent packages for you.

Steps to use whobpyt in GitHub Codespaces: 1. Go to [the GitHub page for the repo](griffithslab/whobpyt) (or any specific branch you want to explore). 2. Click on the green “Code” button on the top right and select the second tab “Codespaces”. 3. In front of the first option “Codespaces”, click on the three-dot button. 4. Select “New with options”. 5. In the new page, select your desired branch. From the second field, choose either of the three configurations we have provided:

  1. WhoBPyT-CPU for a CPU-only environment.

  2. WhoBPyT-GPU for a GPU-enabled environment.

  3. WhoBPyT-docs for a CPU-only environment that also builds the html documentation (useful for exploring and debugging the documentation)

  1. Choose your desired region and machine type.

  2. Click on “Create codespace” and wait for the environment to be created. This should take 1-2 minutes.

  3. Once the environment is created, the python environment will install the necessary packages. This should take 4-5 minutes.

  4. Your configured codespace should be ready. Now you get a full VS Code environment in your browser. You can now explore the code, run the examples, and even edit the code and commit your changes back to the repo.

Now you should be good to continue with the rest of the example code in .py files, .ipynb notebooks, and experiment with new ideas.

Notes: