def read_until_pattern(self, pattern='', re_flags=0):
        output = ''
        if not pattern:
            pattern = self.base_prompt
        pattern = re.escape(pattern)
        while True:
            try:
                output += self.remote_conn.recv(MAX_BUFFER).decode('utf-8', 'ignore')
                if re.search(pattern, output, flags=re_flags):
                    return output
            except socket.timeout:
                raise NetMikoTimeoutException("Timed-out reading channel, data not available.")
Plot resource usage in a bokeh plot.
dataset/ETHPy150Open ktbyers/netmiko/netmiko/base_connection.py/BaseSSHConnection.read_until_pattern--crossover with--dataset/ETHPy150Open dask/dask/dask/diagnostics/profile_visualize.py/plot_resources