# Path: nbx/nbmanager/tagged_gist/gisthub.py
# def gisthub(user, password):
#     g = github.Github(user, password, user_agent="nbx")
#     return GistHub(g)
# 
# def _hashtags(desc):
#     if not desc:
#         return []
#     tags = [tag for tag in desc.split(" ") if tag.startswith("#")]
#     return tags


import github
import nbformat
import nbx.compat as compat
from .gisthub import gisthub, _hashtags



def parse_tags(desc):
    # real tags and not system-like tags
    tags = _hashtags(desc)
    if '#notebook' in tags:

# Path: nbx/nbmanager/tagged_gist/gisthub.py
# def gisthub(user, password):
#     g = github.Github(user, password, user_agent="nbx")
#     return GistHub(g)
# 
# def _hashtags(desc):
#     if not desc:
#         return []
#     tags = [tag for tag in desc.split(" ") if tag.startswith("#")]
#     return tags


# Path: nbx/nbmanager/tagged_gist/notebook_gisthub.py
import github
import nbformat
import nbx.compat as compat
from .gisthub import gisthub, _hashtags




def parse_tags(desc):
    # real tags and not system-like tags
    tags = _hashtags(desc)
    if '#notebook' in tags:

        tags.remove('#notebook')