Module with helper for project setup in google colab

Github Cli on Colab

setup_gh[source]

setup_gh()

Remote Project Helper

class RemoteProject[source]

RemoteProject(cfg_path, cfg_name, is_nbdev=True)

if in_colab():
    cfg_path = "/content/drive/My Drive"
    cfg_name = "remote_colab_projects.ini"
    rp = RemoteProject(cfg_path, cfg_name)
    rp.projects
if in_colab():
    proj_name = "tsmodels"
    git_url = f'Rahuketu86/tsmodels'
    git_branch = "master"
    rp.add_project(proj_name, git_url, git_branch)
    rp.projects
if in_colab():
    path =rp.get_project('tsmodels')
    print(path)
    path.exists()
if in_colab():
    !ls {rp.cfg['DEFAULT']['project_path']}