-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dynamic updates and various temporary testing routines for 3d views.
- Loading branch information
Kasper Peeters
committed
Nov 13, 2024
1 parent
a818dfc
commit 2cba748
Showing
7 changed files
with
211 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"cell_id": 16461605748738409030, | ||
"cells": [ | ||
{ | ||
"cell_id": 10635152356046299518, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"source": "a=server.send(\"hello\", \"graphics_view\", 0, 123, False)" | ||
}, | ||
{ | ||
"cell_id": 11350501809507979634, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"source": "from pathlib import Path\ngltf = Path('test.glb').read_bytes()" | ||
}, | ||
{ | ||
"cell_id": 13867252481123575504, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"source": "gltf64=base64.b64encode(gltf)" | ||
}, | ||
{ | ||
"cell_id": 2928652340647885648, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"cells": [ | ||
{ | ||
"cell_id": 123, | ||
"cell_origin": "server", | ||
"cell_type": "graphics_view", | ||
"source": "Z2xURgIAAAAoDAAAOAgAAEpTT057ImFzc2V0Ijp7ImdlbmVyYXRvciI6Iktocm9ub3MgZ2xURiBCbGVuZGVyIEkvTyB2NC4xLjYzIiwidmVyc2lvbiI6IjIuMCJ9LCJleHRlbnNpb25zVXNlZCI6WyJLSFJfbWF0ZXJpYWxzX3NoZWVuIl0sInNjZW5lIjowLCJzY2VuZXMiOlt7Im5hbWUiOiJTY2VuZSIsIm5vZGVz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AAAAAAAAAAAAAAAAAAAgL8AAAAAAACAPwAAAAAAAIC/AAAAAAAAAAAAAAAAAAAAAAAAgL8AAAAAAACAvwAAAAAAAIC/AAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAAAAAAIC/AAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAACAvwAAAAAAAIC/AAAAAAAAAAAAACA/AAAAPwAAID8AAAA/AAAgPwAAAD8AAMA+AAAAPwAAwD4AAAA/AADAPgAAAD8AACA/AACAPgAAID8AAIA+AAAgPwAAgD4AAMA+AACAPgAAwD4AAIA+AADAPgAAgD4AACA/AABAPwAAYD8AAAA/AAAgPwAAQD8AAMA+AABAPwAAAD4AAAA/AADAPgAAQD8AACA/AAAAAAAAYD8AAIA+AAAgPwAAgD8AAMA+AAAAAAAAAD4AAIA+AADAPgAAgD8BAA0AEwABABMABwAJAAYAEgAJABIAFQAXABQADgAXAA4AEQAQAAQACgAQAAoAFgAFAAIACAAFAAgACwAPAAwAAAAPAAAAAwAAAIC/AAAAAAAAgD8AAIA/AAAAAAAAgD8AAIC/AAAAAAAAgL8AAIA/AAAAAAAAgL8AAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AAAAAAAAAQADAAAAAwACAA==" | ||
} | ||
], | ||
"source": "a=server.send(gltf64, \"graphics_view\", 0, 123, False)" | ||
}, | ||
{ | ||
"cell_id": 15466627643580859060, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"cells": [ | ||
{ | ||
"cell_id": 13223587008277543184, | ||
"cell_origin": "server", | ||
"cell_type": "latex_view", | ||
"cells": [ | ||
{ | ||
"cell_id": 10140132123478261128, | ||
"cell_origin": "server", | ||
"cell_type": "input_form", | ||
"source": "A_{m n}" | ||
} | ||
], | ||
"source": "\\begin{dmath*}{}A_{m n}\\end{dmath*}" | ||
} | ||
], | ||
"source": "ex:=A_{m n};" | ||
}, | ||
{ | ||
"cell_id": 528262603261906739, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"cells": [ | ||
{ | ||
"cell_id": 2406524992584598329, | ||
"cell_origin": "server", | ||
"cell_type": "error", | ||
"source": "{\\color{red}{\\begin{verbatim}NameError: name 'GraphicsView' is not defined\n\nAt:\n cadabra2_defaults.py(323): display\n Notebook Cell (Line 1): _ = print(\"hi\"); display(_)\n\\end{verbatim}}}" | ||
} | ||
], | ||
"source": "print(\"hi\");" | ||
}, | ||
{ | ||
"cell_id": 7971209662709436916, | ||
"cell_origin": "client", | ||
"cell_type": "input", | ||
"source": "" | ||
} | ||
], | ||
"description": "Cadabra JSON notebook format", | ||
"version": 1.0 | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.