From 4ed3609aef21496dfe257d36227753ee38722ad9 Mon Sep 17 00:00:00 2001 From: Margriet Groenendijk Date: Tue, 30 May 2023 11:31:34 +0100 Subject: [PATCH] Update show.py --- pybabylonjs/show.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pybabylonjs/show.py b/pybabylonjs/show.py index 3513960..732c93d 100644 --- a/pybabylonjs/show.py +++ b/pybabylonjs/show.py @@ -104,12 +104,13 @@ def from_dict( data = check_point_cloud_data_dict(mode, data) - point_cloud_args = check_point_cloud_args(mode, kwargs) + point_cloud_args = check_point_cloud_args(mode, False, kwargs) d = { **point_cloud_args, "uri": uri, "data": data, + "streaming": False, "source": source, "mode": mode, } @@ -147,23 +148,15 @@ class BabylonJS: def __init__(self): self.value = None self.z_scale = None - self.width = None - self.height = None def _ipython_display_(self): - kwargs = check_point_cloud_args("default", {}) + kwargs = check_point_cloud_args("default", False, {}) kwargs["source"] = "dict" if self.z_scale: kwargs["z_scale"] = self.z_scale - if self.width: - kwargs["width"] = self.width - - if self.height: - kwargs["height"] = self.height - d = {"data": self.value} create_dataviz(BabylonPointCloud(), d, **kwargs)