Skip to content

Add graph widget #102

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

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/building-with-codegen/codebase-visualization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,22 @@ These visualizations have a number of applications, including:
- Analyzing dependencies
- Understanding inheritance hierarchies

This guide provides a basic overview of graph creation and customization.
This guide provides a basic overview of graph creation and customization. Like the one below which displays the call_graph for the [modal/client.py](https://github.com/modal-labs/modal-client/blob/v0.72.49/modal/client.py) module.

<iframe
width="100%"
height="600px"
scrolling="no"
src={`http://localhost:3000/embedded/graph?id=ef312926-286d-4c13-8e09-38e1a47882f1&zoom=0.5`}
className="rounded-xl "
style={{
backgroundColor: "#15141b",
}}
></iframe>

<Note>
Codegen visualizations are powered by [NetworkX](https://networkx.org/) and
rendered using [ThreeJS](https://threejs.org/).
rendered using [d3](https://d3js.org/what-is-d3).
</Note>

## Basic Usage
Expand Down
8 changes: 5 additions & 3 deletions docs/introduction/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ function.set_docstring('new docstring') # set docstring
src={`https://chadcode.sh/embedded/codemod/?code=${encodeURIComponent(
intoSnippet
)}`}
className="rounded-md "

> </iframe>
style={{
backgroundColor: "#15141b",
}}
className="rounded-xl"
></iframe>

## Installation

Expand Down
Loading