We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98638f6 + c9fd904 commit 759af06Copy full SHA for 759af06
CHANGELOG.md
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
12
### Changed
13
14
+* Fixed `ValueError` when starting viewer for the first time with default config.
15
+
16
### Removed
17
18
src/compas_notebook/config.py
@@ -19,7 +19,7 @@ class CameraConfig:
19
@dataclass
20
class ViewConfig:
21
viewport: Literal["top", "perspective"] = "perspective"
22
- background: Color = Color.from_hex("#eeeeee")
+ background: Color = field(default_factory=lambda: Color.from_hex("#eeeeee"))
23
width: float = 1100
24
height: float = 580
25
show_grid: bool = True
0 commit comments