Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph label #65

Open
tfiers opened this issue Jan 9, 2023 · 5 comments
Open

graph label #65

tfiers opened this issue Jan 9, 2023 · 5 comments
Labels
feature An enhancement to src/ visible to end-users
Milestone

Comments

@tfiers
Copy link
Owner

tfiers commented Jan 9, 2023

.. with version of root pkg :)

(if a setting: either a function (given package name, or some info struct); or a mustache/jinja/handlebars like {{template}} string)
(same as for emptymsg)

For

can display versioninfo() like stuff :) (cause it's important for scale of measurements)

@tfiers tfiers added the feature An enhancement to src/ visible to end-users label Jan 9, 2023
@tfiers tfiers mentioned this issue Jan 11, 2023
@tfiers
Copy link
Owner Author

tfiers commented Jan 14, 2023

How-to is just, it seems:

digraph {
  label = ".."
}

@tfiers
Copy link
Owner Author

tfiers commented Jan 16, 2023

So, gathering above backlinks, what should go in graph 'label':

  • Version of root package
  • Whether from active project (manifest), or General registry
  • maybe: date generated :)
    • Also! PkgGraph.jl & its version :)
      • Ooh, in SVG, could link to repo :)
  • Whether and how many stdlib & jll packages hidden
    • No need to say "to unhide, pass ..": can say that in REPL :)
    • Btw, to give these numbers -- and to make the heuristic decision! -- we do need to crawl for them! (I.e. can't early stop in tree search in depgraph)
  • If timing: @time of total import. (And colour for how bearable that is)

@tfiers
Copy link
Owner Author

tfiers commented Jan 16, 2023

so yeah, this should be a html-like block, can't just be a string w/ newlines.
Can a graph's label be that? Or do we need to create a floating node.
Stichtend voorbeeld: https://graphviz.org/Gallery/directed/pprof.html
(is geen html, gewoon text; maar kan daar perfect i'm sure)
a subgraph.. Necessary? or is node in main graph ('cluster') good too

@tfiers
Copy link
Owner Author

tfiers commented Jan 16, 2023

Dependency graph for Plots v0.7.2

145 packages, of which 42 standard library and 66 JLL packages were filtered out.

Or, if not even crawling them:

Dependency graph for Plots v0.7.2

32 packages, not including standard library and JLL dependencies

(smol: )

Generated with PkgGraph.jl v0.9 on 2023-01-15

@tfiers
Copy link
Owner Author

tfiers commented Sep 5, 2023

Ofc with a flag to disable it. Sth like infobox=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature An enhancement to src/ visible to end-users
Projects
None yet
Development

No branches or pull requests

1 participant