test(view): add foreign and non-foreign preview fixtures
Add a pure Marqdo control page and make the Python view-cells example explicitly import lib/foreign.
This commit is contained in:
1 parent
f3791d11b4
commit
01468ad976
2 files changed
+33
-1
No files matched your search
@@ -0,0 +1,31 @@
|
||||
---
|
||||
title: View without foreign
|
||||
description: A pure Marqdo document — formula, table, plot and prose, no external kernel
|
||||
import math:lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
This page has no foreign import and no ` ```lang ` code cell. It is still opened by the same `view` surface, with the same toolbar and layout. The cell list is simply empty.
|
||||
|
||||
The formula is ordinary Marqdo data:
|
||||
|
||||
$$
|
||||
% marqdo: var=f
|
||||
x^2 - 2
|
||||
$$
|
||||
|
||||
**_plot = math.plot formula=`f` var="x" min=-4 max=4**
|
||||
|
||||
| region | orders | revenue |
|
||||
|--------|--------|---------|
|
||||
| 华东 | 45 | 56253 |
|
||||
| 华南 | 45 | 67187 |
|
||||
| 华北 | 45 | 65272 |
|
||||
| 西部 | 45 | 66884 |
|
||||
|
||||
**total = 56253 + 67187 + 65272 + 66884**
|
||||
|
||||
> print text=`total`
|
||||
|
||||
This is the control page: no foreign, no cells, no separate mode. The same view shell is used.
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: Python 经营洞察 Notebook
|
||||
title: Python 经营洞察 · View Cells
|
||||
description: 多 cell 共享 Python 内核,做订单生成、区域/产品指标、异常检测、报告输出与独立复核。
|
||||
import foreign:lib/foreign.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
Reference in new issue
Block a user