Skip to content

Commit 1703dff

Browse files
committed
update: add json dumps
1 parent 3f6fb9c commit 1703dff

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

other/materials_designer/src/__init__.py

Whitespace-only changes.

utils/jupyterlite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def download_content_to_file(content: Any, filename: str):
448448

449449
if isinstance(content, Material):
450450
content = content.to_json()
451+
content = json.dumps(content, indent=4)
451452

452453
js_code = f"""
453454
var content = `{content}`;

0 commit comments

Comments
 (0)