Skip to main content

Writing dot language and render in jupyter.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dot_kernel-0.1.8.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file dot_kernel-0.1.8.tar.gz.

File metadata

  • Download URL: dot_kernel-0.1.8.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for dot_kernel-0.1.8.tar.gz
Algorithm Hash digest
SHA256 6bf5910b24e1068458ca181257e0a169fa19baf54965e61df9ba1cbb729dbdbf
MD5 9dead429dbfd29e73d4b08fb3de3e4e5
BLAKE2b-256 f757aa744d560d337d1065c6b67454435cae04267b8dc995be8c5770238120e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page