def flush(self, timeout=1.0):
        # We do the IOLoop callback process twice to ensure that the IOLoop
        # gets to perform at least one full poll.
        stop_time = time.time() + timeout
        for i in range(2):
            self._flushed = False
            self.ioloop.add_callback(self._flush)
            while not self._flushed and time.time() < stop_time:
                time.sleep(0.01)
Remove a wxPage instance from the notebook.
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/threaded.py/ThreadedZMQSocketChannel.flush--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_notebook.py/wxDocumentNotebook.RemoveWxPage