Code Monkey home page Code Monkey logo

Comments (2)

thebjorn avatar thebjorn commented on August 16, 2024 1

Hei Jacob og takk for interessen i pydeps :-)

(switching to English for archival purposes..) Pydeps uses the graphviz package's dot command to display the graph (with only minor modifications to highlight the paths when hovering over them). The --show-dot and --dot-output <filename> flags give you access to the graph in this intermediate step.

Re-ordering the input to dot will give different graphs, and there are several "knobs" you can adjust when calling dot manually, but dot is already doing a heroic effort to draw the graph so maybe do this as a last resort..?

The --cluster --collapse-target-cluster combination of flags will give you the smallest possible graph (in combination with a sensible --max-bacon value). --cluster --keep-target-cluster will draw a box around your modules. --only predalert.web will limit the graph to just that branch of your import graph, and -x predalert.web.* will prune the graph.

Displaying the full graph in reduced size with exploded views of the area you are discussing is often useful to orient the reader, and providing a link to the full graph is also often useful (do people still read paper versions of LaTeX documents?)

Hopefully this gives you some ideas..?

I'm more than happy to merge if anyone wants to create a PR for this (you'll probably need to make changes in pydeps/render_context.py).

from pydeps.

ruzko avatar ruzko commented on August 16, 2024

Takk så mye for svaret, Bjorn!
In the end I used two different dependency graphs, one with --max-bacon=2 --cluster --collapse-target-cluster --rankdir LR to show general external deps, and one with --only predalert --rmprefix predalert. --exclude-exact predalert.desktop predalert.web for internal deps :)

Will keep this issue open, since someone else might want this feature

from pydeps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.