用点画语言书写和渲染。
dot-kernel的Python项目详细描述
点内核
朱庇特的点核!
中文里有一个很棒的点语言教程:learn-dot。
安装
你应该先吃点葡萄汁。
- 通过brew安装:
brew install graphviz
。 - 或者
sudo apt-get inatall graphviz
为ubuntu
然后,
pip install dot_kernel
向jupyter添加内核:
install-dot-kernel
全部完成!
使用:
jupyter notebook
选择“新建”->;“点”
试着运行这个:
// The graph name and the semicolons are optional
graph graphname {
a -- b -- c;
b -- d;
}
您将看到:
待办事项
- 更新this。
- 添加更多渲染工具,而不仅仅是
dot
- 添加更多的文件类型支持,而不仅仅是
png
- 自动缩进