def setup_notebook(debug=False):
output_notebook(INLINE, hide_banner=True)<EOL>if debug:<EOL><INDENT>_setup_logging(logging.DEBUG)<EOL>logging.debug('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>_setup_logging(logging.WARNING)<EOL><DEDENT>if '<STR_LIT>' not in os.environ:<EOL><INDENT>global jupyter_proxy_url<EOL>jupyter_proxy_url = '<STR_LIT>'<EOL>logging.info('<STR_LIT>')<EOL><DEDENT>
Called at the start of notebook execution to setup the environment.

    This will configure bokeh, and setup the logging library to be
    reasonable.