from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')


@task
def mnist():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/mnist.py')


@task
def basic_tagger():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('mkdir data')
            install_ancora()
            local('python examples/basic_tagger.py')

from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')


@task
def mnist():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/mnist.py')


@task
def basic_tagger():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/basic_tagger.py')

Remove dataset installation from fabfile
Remove dataset installation from fabfile

  from fabric.api import task, local, run, lcd, cd, env
  from os.path import exists as file_exists
  from fabtools.python import virtualenv
  from os import path
  
  
  PWD = path.join(path.dirname(__file__), '..')
  VENV_DIR = path.join(PWD, '.env')
  
  
  @task
  def mnist():
      with virtualenv(VENV_DIR):
          with lcd(PWD):
              local('pip install -e .')
              local('python examples/mnist.py')
  
  
  @task
  def basic_tagger():
      with virtualenv(VENV_DIR):
          with lcd(PWD):
              local('pip install -e .')
-             local('mkdir data')
-             install_ancora()
              local('python examples/basic_tagger.py')
  
Remove dataset installation from fabfile
## Code Before:
from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')


@task
def mnist():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/mnist.py')


@task
def basic_tagger():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('mkdir data')
            install_ancora()
            local('python examples/basic_tagger.py')

## Instruction:
Remove dataset installation from fabfile
## Code After:
from fabric.api import task, local, run, lcd, cd, env
from os.path import exists as file_exists
from fabtools.python import virtualenv
from os import path


PWD = path.join(path.dirname(__file__), '..')
VENV_DIR = path.join(PWD, '.env')


@task
def mnist():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/mnist.py')


@task
def basic_tagger():
    with virtualenv(VENV_DIR):
        with lcd(PWD):
            local('pip install -e .')
            local('python examples/basic_tagger.py')
