提交 576dea73 编写于 作者: HansBug's avatar HansBug 😆

dev(hansbug): fix problem mentioned in #75

上级 2ded457d
# Examples of TreeValue
## Examples
Here are some TreeValue examples that can be viewed on Colab.
* Visualization: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opendilab/treevalue/blob/main/examples/visualization.ipynb)
## Makefile
```shell
make clean # clean all output in notebook files
```
**Please make sure the output of all notebook files are cleared with `make clean` before committing**.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"id": "edb6ed95", "id": "edb6ed95",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# Basic Usage of TreeValue" "# Visualization of TreeValue"
] ]
}, },
{ {
...@@ -16,6 +16,17 @@ ...@@ -16,6 +16,17 @@
"Create a simple `FastTreeValue` object." "Create a simple `FastTreeValue` object."
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"!pip install treevalue"
],
"metadata": {
"collapsed": false
}
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
......
...@@ -646,7 +646,7 @@ def get_fasttreevalue_test(treevalue_class: Type[FastTreeValue]): ...@@ -646,7 +646,7 @@ def get_fasttreevalue_test(treevalue_class: Type[FastTreeValue]):
title="This is a demo of 2 trees with dup value.", title="This is a demo of 2 trees with dup value.",
cfg={'bgcolor': '#ffffffff'}, cfg={'bgcolor': '#ffffffff'},
) )
assert len(graph_1.source) <= 5000 assert len(graph_1.source) <= 5000 # a value for svg in windows
graph_2 = treevalue_class.graphics( graph_2 = treevalue_class.graphics(
(t, 't'), (t1, 't1'), (t, 't'), (t1, 't1'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册