def setup_class(cls):
     cls.log = cls.log = get_logger(cls.__name__)
     cls.log.handlers = []
     cls.log.propagate = True
 def setup_class(cls):
     cls.log = cls.log = get_logger(cls.__name__)
     cls.log.handlers = []
     cls.log.propagate = True
# -*- coding: utf-8 -*-
#
# jupyter_contrib_nbextensions sphinx documentation build configuration file.
# This file gets execfile()d with the current directory set to its containing
# dir.

import datetime
import glob
import logging
import os

from jupyter_contrib_core.testing_utils import get_logger
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify

log = get_logger(name=os.path.basename(__file__), log_level=logging.INFO)

# Set on_rtd to whether we are building on readthedocs. We get this test from
# docs.readthedocs.io
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
log.info('on_rtd = {}'.format(on_rtd))

# mappings to other sphinx docs
intersphinx_mapping = {
    'ipython': ('http://ipython.org/ipython-doc/dev/', None),
    'nbconvert': ('http://nbconvert.readthedocs.io/en/latest/', None),
    'nbformat': ('http://nbformat.readthedocs.io/en/latest/', None),
    'notebook': ('http://jupyter-notebook.readthedocs.io/en/latest/', None),
    'jupyter': ('http://jupyter.readthedocs.io/en/latest/', None),
    'traitlets': ('http://traitlets.readthedocs.io/en/latest/', None),
}
Пример #4
0
# -*- coding: utf-8 -*-
#
# jupyter_contrib_nbextensions sphinx documentation build configuration file.
# This file gets execfile()d with the current directory set to its containing
# dir.

import datetime
import glob
import logging
import os

from jupyter_contrib_core.testing_utils import get_logger
from recommonmark.transform import AutoStructify
from recommonmark.parser import CommonMarkParser

log = get_logger(name=os.path.basename(__file__), log_level=logging.INFO)

# Set on_rtd to whether we are building on readthedocs. We get this test from
# docs.readthedocs.io
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
log.info('on_rtd = {}'.format(on_rtd))

# mappings to other sphinx docs
intersphinx_mapping = {
    'ipython': ('http://ipython.org/ipython-doc/dev/', None),
    'nbconvert': ('http://nbconvert.readthedocs.io/en/latest/', None),
    'nbformat': ('http://nbformat.readthedocs.io/en/latest/', None),
    'notebook': ('http://jupyter-notebook.readthedocs.io/en/latest/', None),
    'jupyter': ('http://jupyter.readthedocs.io/en/latest/', None),
    'traitlets': ('http://traitlets.readthedocs.io/en/latest/', None),
}
Пример #5
0
 def _read_proc_stderr(self):
     logr = get_logger(self.user.name)
     logr.handlers[0].setFormatter(logging.Formatter(fmt='    %(message)s'))
     logr = wrap_logger_handlers(logr)
     for line in iter(self.proc.stdout.readline, b''):
         logr.info(line.decode('utf-8').strip('\n'))