Giter Site home page Giter Site logo

documenting-your-code's Introduction

documenting-your-code

This repo is a starting place for a tutorial/workshop about documenting your code.

The repo does not contain all of the material from the tutorial. The tutorial is designed to be taught by an instructor. This repo contains code that is used as part of that instruction. In the future, I do hope to translate the material into a self-guided tutorial.

Learner prerequisites

Learners will need a GitHub.com account and should be familiar with some foundational git workflow tasks: cloning a repo, making a branch, pushing to a remote repository.

Participants should also be comfortable with a virtual environment tool of their choice (venv, conda, etc.).

Getting started

These steps should get you ready for the tutorial. Ideally all of these steps would be complete before the tutorial starts.

Fork the repository

You should fork this repository to your GitHub account using the "Fork" icon in the top right of the page. (Access more information about forking a repository.)

Get your new repo locally

git clone [email protected]:<your-username-here>/documenting-your-code.git
cd documenting-your-code/

(This assumes you are using the SSH clone method. If you are not sure what to use, you can read the GitHub documentation on cloning.)

Get Python 3.9 and create a virtual environment

โš ๏ธ A virtual environment is not strictly required for this tutorial, but it is strongly recommended.

If you are not familiar with virtual environments and want to be, I recommend conda as a good starting place. The Introduction to Conda for (Data) Scientists lesson from The Carpentries is a good resource. Start with the Setup instructions, then move on to the Episodes.

This tutorial assumes we are working with Python version 3.9. We also want to create a virtual environment where we can safely install dependencies.

Depending on which virtual environment tool you use, you might install Python 3.9 separately or you may do it as part of the virtual environment creation.

Be sure to activate your new virtual environment!

After you have an environment, you can use the requirements.txt in the repo to install all of the tools you will need.

python3 -m pip install -r requirements.txt

Install randomly in developer mode

Now that we have our virtual environment, we can install our demo package, randomly, in "editable" (a.k.a. "develop") mode. From the root directory of the repo (i.e., /path/to/documenting-your-code), run:

python3 -m pip install -e .

This will ensure that any changes we make to the demo package will be automatically available to us in our virtual environment without reinstalling the randomly package.

documenting-your-code's People

Contributors

deppen8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.