========
Projects
========

In Data Science & AI Workbench, a project is a structured environment for developing, managing, and deploying data science and machine learning applications. This includes relevant packages, channels, scripts, notebooks, files, environment variables, services and commands, and a *core configuration file* named ``anaconda-project.yml``. For more information, see :doc:`project-config`.

Project components are archived into a ``.tar.bz2``, ``.tar.gz``, or ``.zip`` file for portability purposes, allowing you to store the project and share it with others. 

.. _create_project: 

Creating a new project
======================

#. From the |file-code| **Projects** page click **Create +**, then select *New Project*.
#. Enter a name for your project.
#. Select an environment for your project.
#. Select a resource profile for your project.
#. If necessary, add any users or groups as collaborators.
#. Click **Create**.

Uploading an existing project
=============================

#. From the |file-code| **Projects** page click **Create +**, then select *Upload Project*.
#. Click **Browse** and upload your project archive file to Workbench.
#. Enter a name for your project.
#. If necessary, add any users or groups as collaborators.
#. Click **Upload**.

Using sample projects
=====================

To access the sample project gallery, navigate to the |file-code| **Projects** page, then click **Sample Projects**. Click |clone| **Add to your projects** on any sample project to copy it to the |file-code| **Projects** page. 

Anaconda provides you with a gallery of sample projects that include:

* Several base Anaconda Distribution for Python environments
* Minimal Python environments
* R notebooks and R Shiny apps
* Simplified Jupyter Notebooks for Matplotlib and HvPlot
* Dashboards for the Gapminder dataset, oil and gas, NYC taxi, and attractor equations
* TensorFlow apps for Flask, Tornado, and MINST trained data
* And tutorial projects for:

   * Using Intake to distribute and ingest data
   * Database access using SQLAlchemy, Pandas, and Dask
   * Visualizations with HoloViz.org tools
   * Building time-series forecasting models using statsmodels

These projects are intended to aid you with your own projects by demonstrating how to do a variety of things in Workbench. 

    .. tip:: 

        Use the **Category** dropdown to filter the displayed sample projects. 

        .. thumbnail:: ../../images/sample_project_categories.gif
            :align: center

.. _delete_project:

Deleting a project
==================

#. From the |file-code| **Projects** page open the project you want to delete. 
#. Click **Delete** at the bottom of the project settings page. 
#. Click **Delete** again to confirm that you want to delete the project and end any active sessions and deployments from the project. 

.. warning::

   Deleting a project is irreversible. Project owners and administrators are the only users that can delete shared projects.

.. toctree::
   :maxdepth: 1
   :hidden:

   project-templates
   working-with-projects
   branching
   project-tagging
   project-session
   project-config
   collaborate
   project-logs

.. |clone| raw:: html

     <i class="fa-light fa-clone"></i>

.. |file-code| raw:: html

   <svg class="inline" height="1.2em" width="1.2em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M64 496c-26.5 0-48-21.5-48-48V64c0-26.5 21.5-48 48-48H204.1c1.3 0 2.6 .1 3.9 .2V136c0 22.1 17.9 40 40 40H367.8c.2 1.3 .2 2.6 .2 3.9V448c0 26.5-21.5 48-48 48H64zM358.6 157.3c.9 .9 1.7 1.8 2.4 2.7H248c-13.3 0-24-10.7-24-24V22.9c1 .8 1.9 1.6 2.7 2.4L358.6 157.3zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V179.9c0-12.7-5.1-24.9-14.1-33.9L238.1 14.1c-9-9-21.2-14.1-33.9-14.1H64zm85.7 269.7c3.1-3.1 3.1-8.2 0-11.3s-8.2-3.1-11.3 0l-56 56c-3.1 3.1-3.1 8.2 0 11.3l56 56c3.1 3.1 8.2 3.1 11.3 0s3.1-8.2 0-11.3L99.3 320l50.3-50.3zm96-11.3c-3.1-3.1-8.2-3.1-11.3 0s-3.1 8.2 0 11.3L284.7 320l-50.3 50.3c-3.1 3.1-3.1 8.2 0 11.3s8.2 3.1 11.3 0l56-56c3.1-3.1 3.1-8.2 0-11.3l-56-56z"/></svg>