Skip to content

laixintao/jupyter-dot-kernel

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 

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 inatall 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

About

๐Ÿ“Dot language kernel for jupyter.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages