Skip to content

Latest commit

History

History
58 lines (38 loc) 路 1.08 KB

readme.md

File metadata and controls

58 lines (38 loc) 路 1.08 KB

Dot Kernel

The dot kernel for jupyter!

There is an awesome dot language tutorial in Chinese: learn-dot.

demo.jpeg

Install

You should have graphviz first.

  • Install by brew: brew install graphviz.
  • or sudo apt-get install graphviz for ubuntu

Then,

pip install dot_kernel

Add kernel to your jupyter:

install-dot-kernel

ALL DONE! 馃帀馃帀馃帀

Run using:

jupyter notebook

Select new -> dot

new_dot.png

and try run this:

 // The graph name and the semicolons are optional
 graph graphname {
     a -- b -- c;
     b -- d;
 }

You will see:

first_try.png

TODO

  1. update this.
  2. add more render tools not just dot
  3. add more filetype support not just png
  4. auto indent