Skip to content

Commit

Permalink
Ignore JupyterComm warnings from Panel for now
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jan 23, 2024
1 parent 45254b4 commit 6689781
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/tests/plotting/bokeh/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
import panel as pn
import param
import pytest
from bokeh.io import curdoc
from bokeh.themes.theme import Theme
from panel.widgets import DiscreteSlider, FloatSlider, Player
Expand Down Expand Up @@ -154,6 +155,7 @@ def test_render_holomap_individual_widget_position(self):
self.assertEqual(obj.widget_location, 'top')
self.assertEqual(obj.widget_type, 'individual')

@pytest.mark.filterwarnings('ignore:Attempted to send message over Jupyter Comm')
def test_render_dynamicmap_with_dims(self):
dmap = DynamicMap(lambda y: Curve([1, 2, y]), kdims=['y']).redim.range(y=(0.1, 5))
obj, _ = self.renderer._validate(dmap, None)
Expand All @@ -166,6 +168,7 @@ def test_render_dynamicmap_with_dims(self):
slider.value = 3.1
self.assertEqual(cds.data['y'][2], 3.1)

@pytest.mark.filterwarnings('ignore:Attempted to send message over Jupyter Comm')
def test_render_dynamicmap_with_stream(self):
stream = Stream.define('Custom', y=2)()
dmap = DynamicMap(lambda y: Curve([1, 2, y]), kdims=['y'], streams=[stream])
Expand All @@ -178,6 +181,7 @@ def test_render_dynamicmap_with_stream(self):
stream.event(y=3)
self.assertEqual(cds.data['y'][2], 3)

@pytest.mark.filterwarnings('ignore:Attempted to send message over Jupyter Comm')
def test_render_dynamicmap_with_stream_dims(self):
stream = Stream.define('Custom', y=2)()
dmap = DynamicMap(lambda x, y: Curve([x, 1, y]), kdims=['x', 'y'],
Expand Down

0 comments on commit 6689781

Please sign in to comment.