environment/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py
def write_connection_file(self):
        """write connection info to JSON dict in self.connection_file"""
        if self._connection_file_written:
            return
        self.connection_file,cfg = write_connection_file(self.connection_file,
            ip=self.ip, key=self.session.key,
            stdin_port=self.stdin_port, iopub_port=self.iopub_port,
            shell_port=self.shell_port, hb_port=self.hb_port)
        # write_connection_file also sets default ports:
        self.shell_port = cfg['shell_port']
        self.stdin_port = cfg['stdin_port']
        self.iopub_port = cfg['iopub_port']
        self.hb_port = cfg['hb_port']
        
        self._connection_file_written = True
def write_connection_file(self):
        if self._connection_file_written:
            return
        self.connection_file,cfg = write_connection_file(self.connection_file,
            ip=self.ip, key=self.session.key,
            stdin_port=self.stdin_port, iopub_port=self.iopub_port,
            shell_port=self.shell_port, hb_port=self.hb_port)
        # write_connection_file also sets default ports:
        self.shell_port = cfg['shell_port']
        self.stdin_port = cfg['stdin_port']
        self.iopub_port = cfg['iopub_port']
        self.hb_port = cfg['hb_port']
        
        self._connection_file_written = True
def write_connection_file ( self ) : if self . _connection_file_written : return self . connection_file , cfg = write_connection_file ( self . connection_file , ip = self . ip , key = self . session . key , stdin_port = self . stdin_port , iopub_port = self . iopub_port , shell_port = self . shell_port , hb_port = self . hb_port ) # write_connection_file also sets default ports: self . shell_port = cfg [ 'shell_port' ] self . stdin_port = cfg [ 'stdin_port' ] self . iopub_port = cfg [ 'iopub_port' ] self . hb_port = cfg [ 'hb_port' ] self . _connection_file_written = True
write connection info to JSON dict in self.connection_file
write connection info to JSON dict in self . connection_file