8000 Merge pull request #50 from pyscript/bk_warnings_suppress · Nullinteger65/pyscript@e5c7435 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5c7435

Browse files
authored
Merge pull request pyscript#50 from pyscript/bk_warnings_suppress
Suppress bokeh warnings
2 parents c742f47 + ebfbc4d commit e5c7435

File tree

4 files changed

+7
-8
lines changed

4 fil 8000 es changed

+7
-8
lines changed

pyscriptjs/examples/bokeh_interactive.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1>Bokeh Example</h1>
3232

3333
from bokeh import __version__
3434
from bokeh.document import Document
35-
from bokeh.embed.util import OutputDocumentFor, standalone_docs_json
35+
from bokeh.embed.util import OutputDocumentFor, standalone_docs_json_and_render_items
3636
from bokeh.models import Slider, Div
3737
from bokeh.layouts import Row
3838
from bokeh.protocol.messages.patch_doc import process_document_events
@@ -48,12 +48,12 @@ <h1>Bokeh Example</h1>
4848

4949
row = Row(children=[p, div])
5050

51-
print("about to embed")
52-
5351
def doc_json(model, target):
5452
with OutputDocumentFor([model]) as doc:
5553
doc.title = ""
56-
docs_json = standalone_docs_json([model])
54+
docs_json, _ = standalone_docs_json_and_render_items(
55+
[model], suppress_callback_warning=True
56+
)
5757

5858
doc_json = list(docs_json.values())[0]
5959
root_id = doc_json['roots']['root_ids'][0]
@@ -87,7 +87,6 @@ <h1>Bokeh Example</h1>
8787
async def show(plot, target):
8888
pydoc, model_json = doc_json(plot, target)
8989
views = await Bokeh.embed.embed_item(JSON.parse(model_json))
90-
print("Done embedding...")
9190
jsdoc = views[0].model.document
9291
_link_docs(pydoc, jsdoc)
9392

pyscriptjs/examples/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<py-env>
1414
- bokeh
1515
- numpy
16-
- panel
16+
- panel==0.13.1a2
1717
</py-env>
1818
<h1>Panel Example</h1>
1919
<div id="myplot"></div>

pyscriptjs/examples/panel_deckgl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- bokeh
4747
- numpy
4848
- pandas
49-
- panel==0.13.1a1
49+
- panel==0.13.1a2
5050
</py-env>
5151

5252
<div class="container-fluid d-flex flex-column vh-100 overflow-hidden" id="container">

pyscriptjs/examples/panel_kmeans.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- numpy
4848
- pandas
4949
- scikit-learn
50-
- panel
50+
- panel==0.13.1a2
5151
- altair
5252
</py-env>
5353

0 commit comments

Comments
 (0)
0