You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Term
using Term.Trees
data =Dict(
"a"=>1,
"b"=> Int64,
"deep"=>Dict(
"x"=>1,
"y"=>:x
),
)
print(Tree(data; title="data"))
data
├─ deep ⇒ Dict("x" => 1, "y" => :x)
│ ├─ x ⇒ 1
│ └─ y ⇒ x
├─ b ⇒ Int64
└─ a ⇒ 1
That removes the first "raw" output replacing it with a title. For the inner deep ⇒ Dict() it will print the whole Dict there unfortunately. You can always pass your print_node function to Tree to achieve exactly what you want it to do though.
Using the example
The content is printed as
Is it possible to just print the tree part hiding the raw output (something like this)
The text was updated successfully, but these errors were encountered: