environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/handlers.py
def _inject_cookie_message(self, msg):
        """Inject the first message, which is the document cookie,
        for authentication."""
        if isinstance(msg, unicode):
            # Cookie can't constructor doesn't accept unicode strings for some reason
            msg = msg.encode('utf8', 'replace')
        try:
            self.request._cookies = Cookie.SimpleCookie(msg)
        except:
            logging.warn("couldn't parse cookie string: %s",msg, exc_info=True)
def _inject_cookie_message(self, msg):
        if isinstance(msg, unicode):
            # Cookie can't constructor doesn't accept unicode strings for some reason
            msg = msg.encode('utf8', 'replace')
        try:
            self.request._cookies = Cookie.SimpleCookie(msg)
        except:
            logging.warn("couldn't parse cookie string: %s",msg, exc_info=True)
def _inject_cookie_message ( self , msg ) : if isinstance ( msg , unicode ) : # Cookie can't constructor doesn't accept unicode strings for some reason msg = msg . encode ( 'utf8' , 'replace' ) try : self . request . _cookies = Cookie . SimpleCookie ( msg ) except : logging . warn ( "couldn't parse cookie string: %s" , msg , exc_info = True )
Inject the first message, which is the document cookie,
        for authentication.
Inject the first message which is the document cookie for authentication .