Commit 5b0d1f6
committed
feat: wire TikZ export button through anywidget comm channel
- Add Python-side _on_custom_msg handler that receives export_tikz
request from JS, generates .tex content, and sends it back as
tikz_data message (avoids server-side file paths)
- Standalone mode: disable TikZ button with tooltip; SVG still works
- Jupyter mode: clicking Export TikZ triggers model.send() → Python
generates content → JS receives blob → browser downloads .tex
- 139 passed, 5 skipped; build + twine check pass1 parent e8fff92 commit 5b0d1f6
2 files changed
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15843 | 15843 | | |
15844 | 15844 | | |
15845 | 15845 | | |
15846 | | - | |
| 15846 | + | |
| 15847 | + | |
| 15848 | + | |
| 15849 | + | |
| 15850 | + | |
| 15851 | + | |
| 15852 | + | |
| 15853 | + | |
| 15854 | + | |
| 15855 | + | |
| 15856 | + | |
| 15857 | + | |
15847 | 15858 | | |
15848 | 15859 | | |
15849 | 15860 | | |
| 15861 | + | |
| 15862 | + | |
| 15863 | + | |
| 15864 | + | |
| 15865 | + | |
| 15866 | + | |
| 15867 | + | |
| 15868 | + | |
| 15869 | + | |
| 15870 | + | |
15850 | 15871 | | |
15851 | 15872 | | |
15852 | 15873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
0 commit comments