The dot kernel for jupyter!
There is an awesome dot language tutorial in Chinese: learn-dot.
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
and try run this:
// The graph name and the semicolons are optional
graph graphname {
a -- b -- c;
b -- d;
}
You will see:
A container based on jupyter/datascience
named garo/jupyter-dot
is available on Docker Hub.
If you have docker you can run it as you would any other jupyter container without having to install anything.
A quick example: docker run -d -rm -p 8888:8888 garo/jupyter-dot
- update this.
- add more render tools not just
dot
- add more filetype support not just
png
- auto indent