Skip to content

claytonpbarrows/D3TypeTrees.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3TypeTrees.jl

Build Status

Build status

julia type hierarchy visualization

Installation

using Pkg
Pkg.add("D3TypeTrees")

Examples

The following will open a D3 visualization of the subtypes of the 'Number' type in your browser (default = 'google chrome').

DisplayTypeTree(Number)

Tree

You can also display a tree in the REPL

julia> TypeTree(Number)
Number
├──Real
│  ├──Integer
│  │  ├──Bool (0 children)
│  │  ├──Unsigned (5 children)
│  │  └──Signed (6 children)
│  ├──AbstractFloat
│  │  ├──Float16 (0 children)
│  │  ├──Float64 (0 children)
│  │  ├──Float32 (0 children)
│  │  └──BigFloat (0 children)
│  ├──AbstractIrrational
│  │  └──Irrational (0 children)
│  └──Rational
└──Complex

In a Notebook, the TypeTree() displays the D3 tree visualization

Limitations

Requires an internet connection