# Path: onecodex/exceptions.py
# class UploadException(Exception):
#     """An exception for when things go wrong with uploading."""
# 
#     pass
# 
# Path: onecodex/notebooks/report.py
# class set_style(object):
# class set_center_header(object):
# class set_date(object):
# class title(object):
# class set_logo(object):
# class legend(object):
# class reference(object):
# class bibliography(object):
# class page_break(object):
# class cover_sheet(object):
#     def __init__(self, style):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, date=None, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, url, position="left", style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, heading=None, fignum=None, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text=None, label=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __str__(self):
#     def __init__(self, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, title, prepared_for, prepared_by, project_details, add_br=True):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):


from base64 import b64encode
from builtins import bytes
from io import BytesIO
from nbconvert.exporters.html import HTMLExporter
from nbconvert.preprocessors import Preprocessor
from traitlets import default
from onecodex.exceptions import UploadException
from onecodex.notebooks import report
            from jupyter_contrib_nbextensions.nbconvert_support import (  # noqa
                PyMarkdownPreprocessor,
            )
        from weasyprint import HTML, CSS
        from onecodex import Api
        from onecodex.lib.upload import _upload_document_fileobj
import copy
import datetime
import json
import os
import pytz
        import sentry_sdk


ASSETS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "assets"))
HTML_TEMPLATE_FILE = "notebook_template.tpl"
CSS_TEMPLATE_FILE = "notebook_template.css"



# Path: onecodex/exceptions.py
# class UploadException(Exception):
#     """An exception for when things go wrong with uploading."""
# 
#     pass
# 
# Path: onecodex/notebooks/report.py
# class set_style(object):
# class set_center_header(object):
# class set_date(object):
# class title(object):
# class set_logo(object):
# class legend(object):
# class reference(object):
# class bibliography(object):
# class page_break(object):
# class cover_sheet(object):
#     def __init__(self, style):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, date=None, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, url, position="left", style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text, heading=None, fignum=None, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, text=None, label=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __str__(self):
#     def __init__(self, style=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):
#     def __init__(self, title, prepared_for, prepared_by, project_details, add_br=True):
#     def display(self):
#     def _repr_mimebundle_(self, include=None, exclude=None):


# Path: onecodex/notebooks/exporters.py
from base64 import b64encode
from builtins import bytes
from io import BytesIO
from nbconvert.exporters.html import HTMLExporter
from nbconvert.preprocessors import Preprocessor
from traitlets import default
from onecodex.exceptions import UploadException
from onecodex.notebooks import report
            from jupyter_contrib_nbextensions.nbconvert_support import (  # noqa
                PyMarkdownPreprocessor,
            )
        from weasyprint import HTML, CSS
        from onecodex import Api
        from onecodex.lib.upload import _upload_document_fileobj
import copy
import datetime
import json
import os
import pytz
        import sentry_sdk



ASSETS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "assets"))
HTML_TEMPLATE_FILE = "notebook_template.tpl"
CSS_TEMPLATE_FILE = "notebook_template.css"



class AltairPreprocessor(Preprocessor):