Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

create_new_project.md 3.3 KB

You have to be logged in to leave a comment. Sign In
title description
Create a New DagsHub Project Learn to create a new project fully hosted on DagsHub. Find out how to create and clone repositories.

Create a New DagsHub Project

Hello, and welcome to DagsHub! We're happy to have you with us! In this guide, we'll walk you through setting up and configuring DagsHub to start building your ML project.

If you already have a repository you'd like to work with on GitHub, GitLab, or BitBucket, see our guide on connecting an existing repository

There is no need to configure anything to start the project from this point.

  • We'll start by creating a new repository on DagsHub. Click on the 'Create' button, choose the 'New Repository' option.

    create-repository

  • Then select Create from Template and choose the Custom option.

    create-template

    template-custom

  • You'll be redirected to the repository settings dialog.

  • Fill in the name of your repository, select .gitignore templates (we recommend Python), a License, and if you'd like a Default Readme. Then click the 'Create Repository' button at the bottom.

[![new-repository-settings](assets/create_new_project/1-new-repo-settings.png){: style="height:100%;width:100%"}](assets/create_new_project/1-new-repo-settings.png){target=_blank}

Clone the Repository

Now, we'll clone the Git remote, which is stored on DagsHub, to our local computer.

  • Go to the repository page, click on the remote button and copy the Git remote link.

    git-remote

  • From your CLI, change the directory to where you wish to clone the repository and git-clone it using the copied link.

    === "Mac, Linux, Windows" bash cd path/to/folder git clone https://dagshub.com/<DagsHub-user-name>/<repo_name>.git .

It's a best practice to create and activate a virtual environment before starting to work on your project.

??? info "How to create and activate a virtual environment?" - Make sure you're in the project directory when following this. - If you're using Python 2, replace venv with virtualenv in the below commands. - The name of the virtual environment is for you to choose. The convention is 'env' or 'venv'. - We will add the virtual environment name to the .gitignore file, so Git will not track it.

=== "Mac, Linux"
    ```bash
    python3 -m venv <virtual-environment-name>
    echo <virtual-environment-name> >> .gitignore
    source <virtual-environment-name>/bin/activate
    ```
=== "Windows"
    ```shell
    py -m venv <virtual-environment-name>
    echo venv >> .gitignore
    <virtual-environment-name>/Scripts/activate.bat
    ```

- **<u>Note</u>**: *To verify that you activated the virtual environment, its name should appear in the parentheses on the left.*

Next Steps

Now that you have your project set up, you can continue to version datasets and code, track experiments, or check out some of our other common use cases.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...