def notebook_show(obj, doc, comm):
target = obj.ref['<STR_LIT:id>']<EOL>load_mime = '<STR_LIT>'<EOL>exec_mime = '<STR_LIT>'<EOL>bokeh_script, bokeh_div, _ = bokeh.embed.notebook.notebook_content(obj, comm.id)<EOL>publish_display_data(data={'<STR_LIT>': encode_utf8(bokeh_div)})<EOL>JS = '<STR_LIT:\n>'.join([PYVIZ_PROXY, JupyterCommManager.js_manager])<EOL>publish_display_data(data={load_mime: JS, '<STR_LIT>': JS})<EOL>msg_handler = bokeh_msg_handler.format(plot_id=target)<EOL>comm_js = comm.js_template.format(plot_id=target, comm_id=comm.id, msg_handler=msg_handler)<EOL>bokeh_js = '<STR_LIT:\n>'.join([comm_js, bokeh_script])<EOL>publish_display_data(data={exec_mime: '<STR_LIT>', '<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': bokeh_js},<EOL>metadata={exec_mime: {'<STR_LIT:id>': target}})<EOL>
Displays bokeh output inside a notebook.