SmirkCao / jupyter-dot-kernel

Dot language kernel for jupyter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dot Kernel

The dot kernel for jupyter!

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

Install

You should have graphviz first. Install by brew: brew install graphviz.

Then,

pip install dot_kernel

Add kernel to your jupyter:

install-dot-kernel

ALL DONE! ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Run using:

jupyter notebook

Select new -> dot

and try run this:

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

You will see:

TODO

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

About

Dot language kernel for jupyter.


Languages

Language:Python 98.7%Language:Shell 1.3%