From a597f5cef28e0f852a1a7fbbe4724951a0a7fc31 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Fri, 8 Apr 2022 23:59:29 +0200 Subject: [PATCH] Clean up panel example --- pyscriptjs/public/panel.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pyscriptjs/public/panel.html b/pyscriptjs/public/panel.html index 25cc3143..2bb1aaea 100644 --- a/pyscriptjs/public/panel.html +++ b/pyscriptjs/public/panel.html @@ -1,5 +1,5 @@ - Bokeh Example + Panel Example @@ -21,19 +21,17 @@ - bokeh - numpy -

Bokeh Example

+

Panel Example

- - -import json -import pyodide + import asyncio +import json import micropip +import pyodide from js import Bokeh, console, JSON -import bokeh - +from bokeh import __version__ from bokeh.document import Document from bokeh.embed.util import OutputDocumentFor, standalone_docs_json from bokeh.protocol.messages.patch_doc import process_document_events @@ -63,7 +61,7 @@ def doc_json(model, target): target_id = target, root_id = root_id, doc = doc_json, - version = bokeh.__version__, + version = __version__, )) def link_docs(pydoc, jsdoc): @@ -91,7 +89,6 @@ async def show(plot, target): link_docs(pydoc, jsdoc) await show(row, 'myplot') - - +