Skip to main content

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

Running in Docker

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

TODO

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

Metadata

Release files for dot-kernel 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dot-kernel 0.1.9
File Size Uploaded
dot_kernel-0.1.9.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dot-kernel 0.1.9
File Interpreter ABI Platform
dot_kernel-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / dot_kernel-0.1.9.tar.gz

Download URL dot_kernel-0.1.9.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fb988481c96aaad7942d5dafd9018181323f332fc7a2aebc48cfac4354d9abe1
BLAKE2b-256 checksum
How to use checksums
e4ea1494cf7a1f2e25bd320fbb8c279996c894926bb610e4a8320306cad9523a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / dot_kernel-0.1.9-py3-none-any.whl

Download URL dot_kernel-0.1.9-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cf3ca5976daa795b687d1c67a8efdb4cd323821ea05e8689504bd0f75b6fcc9
BLAKE2b-256 checksum
How to use checksums
b3548f8bacc9fea9f9457efc42edf4c1720ff817f468788051e180584a3a8c68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page