perf: Avoid redundant list operations in ListLike
#12898
Annotations
5 errors
Test Examples
Process completed with exit code 1.
|
Test Examples:
examples/reference/layouts/Row.ipynb#L1
examples/reference/layouts/Row.ipynb::Cell 5
Notebook cell execution failed
Cell 5: Cell execution caused an exception
Input:
from bokeh.plotting import figure
p1 = figure(height=200, sizing_mode='stretch_width')
p2 = figure(height=200, sizing_mode='stretch_width')
p1.line([1, 2, 3], [1, 2, 3])
p2.circle([1, 2, 3], [1, 2, 3])
pn.Row(p1, p2)
Traceback:
---------------------------------------------------------------------------
UnsetValueError Traceback (most recent call last)
File ~/work/panel/panel/.pixi/envs/test-313/lib/python3.13/site-packages/IPython/core/formatters.py:1036, in MimeBundleFormatter.__call__(self, obj, include, exclude)
1033 method = get_real_method(obj, self.print_method)
1035 if method is not None:
-> 1036 return method(include=include, exclude=exclude)
1037 return None
1038 else:
File ~/work/panel/panel/panel/viewable.py:849, in Viewable._repr_mimebundle_(self, include, exclude)
847 doc = Document()
848 comm = state._comm_manager.get_server_comm()
--> 849 model = self._render_model(doc, comm)
850 if config.embed:
851 return render_model(model)
File ~/work/panel/panel/panel/viewable.py:767, in Viewable._render_model(self, doc, comm)
765 if comm is None:
766 comm = state._comm_manager.get_server_comm()
--> 767 model = self.get_root(doc, comm)
769 if self._design and self._design.theme.bokeh_theme:
770 doc.theme = self._design.theme.bokeh_theme
File ~/work/panel/panel/panel/layout/base.py:327, in Panel.get_root(self, doc, comm, preprocess)
323 def get_root(
324 self, doc: Document | None = None, comm: Comm | None = None,
325 preprocess: bool = True
326 ) -> Model:
--> 327 root = super().get_root(doc, comm, preprocess)
328 # ALERT: Find a better way to handle this
329 if hasattr(root, 'styles') and 'overflow-x' in root.
|
Test Examples:
examples/reference/layouts/Column.ipynb#L1
examples/reference/layouts/Column.ipynb::Cell 5
Notebook cell execution failed
Cell 5: Cell execution caused an exception
Input:
from bokeh.plotting import figure
p1 = figure(height=150, sizing_mode='stretch_width')
p2 = figure(height=150, sizing_mode='stretch_width')
p1.line([1, 2, 3], [1, 2, 3])
p2.circle([1, 2, 3], [1, 2, 3])
pn.Column(p1, p2)
Traceback:
---------------------------------------------------------------------------
UnsetValueError Traceback (most recent call last)
File ~/work/panel/panel/.pixi/envs/test-313/lib/python3.13/site-packages/IPython/core/formatters.py:1036, in MimeBundleFormatter.__call__(self, obj, include, exclude)
1033 method = get_real_method(obj, self.print_method)
1035 if method is not None:
-> 1036 return method(include=include, exclude=exclude)
1037 return None
1038 else:
File ~/work/panel/panel/panel/viewable.py:849, in Viewable._repr_mimebundle_(self, include, exclude)
847 doc = Document()
848 comm = state._comm_manager.get_server_comm()
--> 849 model = self._render_model(doc, comm)
850 if config.embed:
851 return render_model(model)
File ~/work/panel/panel/panel/viewable.py:767, in Viewable._render_model(self, doc, comm)
765 if comm is None:
766 comm = state._comm_manager.get_server_comm()
--> 767 model = self.get_root(doc, comm)
769 if self._design and self._design.theme.bokeh_theme:
770 doc.theme = self._design.theme.bokeh_theme
File ~/work/panel/panel/panel/layout/base.py:327, in Panel.get_root(self, doc, comm, preprocess)
323 def get_root(
324 self, doc: Document | None = None, comm: Comm | None = None,
325 preprocess: bool = True
326 ) -> Model:
--> 327 root = super().get_root(doc, comm, preprocess)
328 # ALERT: Find a better way to handle this
329 if hasattr(root, 'styles') and 'overflow-x' in root
|
Test Examples:
examples/reference/layouts/Card.ipynb#L1
examples/reference/layouts/Card.ipynb::Cell 8
Notebook cell execution failed
Cell 8: Cell execution caused an exception
Input:
from bokeh.plotting import figure
p1 = figure(height=250, sizing_mode='stretch_width', margin=5)
p2 = figure(height=250, sizing_mode='stretch_width', margin=5)
p1.line([1, 2, 3], [1, 2, 3])
p2.circle([1, 2, 3], [1, 2, 3])
pn.Card(p1, pn.layout.Divider(), p2, title="Responsive", sizing_mode='stretch_width')
Traceback:
---------------------------------------------------------------------------
UnsetValueError Traceback (most recent call last)
File ~/work/panel/panel/.pixi/envs/test-313/lib/python3.13/site-packages/IPython/core/formatters.py:1036, in MimeBundleFormatter.__call__(self, obj, include, exclude)
1033 method = get_real_method(obj, self.print_method)
1035 if method is not None:
-> 1036 return method(include=include, exclude=exclude)
1037 return None
1038 else:
File ~/work/panel/panel/panel/viewable.py:849, in Viewable._repr_mimebundle_(self, include, exclude)
847 doc = Document()
848 comm = state._comm_manager.get_server_comm()
--> 849 model = self._render_model(doc, comm)
850 if config.embed:
851 return render_model(model)
File ~/work/panel/panel/panel/viewable.py:767, in Viewable._render_model(self, doc, comm)
765 if comm is None:
766 comm = state._comm_manager.get_server_comm()
--> 767 model = self.get_root(doc, comm)
769 if self._design and self._design.theme.bokeh_theme:
770 doc.theme = self._design.theme.bokeh_theme
File ~/work/panel/panel/panel/layout/base.py:327, in Panel.get_root(self, doc, comm, preprocess)
323 def get_root(
324 self, doc: Document | None = None, comm: Comm | None = None,
325 preprocess: bool = True
326 ) -> Model:
--> 327 root = super().get_root(doc, comm, preprocess)
328 # ALERT: Find a better way to handle this
329 if hasattr(root, 'styles') and '�[3
|
|
Loading